table of contentsoverview overviewIf you read this, I guess you're a developper that is interested in participating in the boneclipse project, or you want to build boneclipse from source, and/or want to understand the internals. This document presents the boneclipse structure and explains how to build and test it using the Eclipse runtime-workbench. It focuses on Eclipse integration. This is a draft subject to change. To begin with you should checkout a fresh version of the various boneclipse modules. The current modules in boneclipse are:
The com.bonevich.eclipse.plugins project is the master project and build process controller. The build process is triggered by calling maven build-all The com.bonevich.eclipse.cvsgrapher and com.bonevich.eclipse.logging projects are Eclipse plugin projects. building the various artifacts
The
Site generation has been reactored too. The site generation process can be triggered by running
The file
configuring the build processBuilding the boneclipse subprojects is a bit tricky to configure since most of the Eclipse libraries are not present at ibiblio (I plan to submit requests to upload them). So I can see two ways of solving this issue:
I choose the first solution because (1) it uses then the common mechanism and
(2) it does not pollute the
We take care of the jar copy by adding a preGoal for
<copy file="${eclipse.home}/plugins/org.eclipse.core.resources_2.1.0/resources.jar" tofile="${maven.home}/repository/eclipse/jars/eclipse-resources-2.1.0.jar"/> ... <copy file="${eclipse.home}/plugins/${swt.plugin.dir}/swt.jar" tofile="${maven.home}/repository/eclipse/jars/eclipse-swt-2.1.0.jar"/>
Concerning the site generation, I chose to use a property to identify the
siteDirectory
So, in brief, you need to set the following properties in
In addition, for the Ant script to work, you must set these two properties in
and then invoke
launching the Runtime-workbenchAt this point you should have been able to build the projects thanks to Maven (and, as a corollary, to configure your Eclipse workspace).
Before launching the runtime-workbench, please make sure that the boneclipse directory layout is correct
regarding the meta-information contained in the
maven boneclipse:prepare-lib The plugins use a large number of libraries, so we group them under the /lib directory. We also declare the /etc directory to be a runtime-dependency containing only resources. Icons are stored in the /icons directory. Your project layout should look like this: ${eclipse.plugins.dir}/${boneclipse.project}_1_0_0/ +- etc/ | +- META-INF/ | | | +- commons-logging.properties | +- icons/ | | | +- *.gif | +- lib | | | +- *.jar | +- plugin.xml | +- ${plugin.resource.files} | +- ${boneclipse.project}_1.0.0.jar runtime testingJust select Run->Run As->Run-time Workbench and you should be good to go for testing. You may need to make sure that you have the Runtime Workbench settings properly configured, but the default ought to work. |