Feb 21 2007
CruiseControl and Eclipse Headless Build
We have been running a script to build our RCP app headless using CruiseControl in addition to building the plugins individually. In addition to building our app we do some tagging in version control. In addition we build each plugin individually so we can run unit tests, etc. It took me a while to get it running but now we are pulling our code out of CVS for each build using a map file.
This is the command that CruiseControl runs in a batch file.
java -cp %eclipse_path%/startup.jar org.eclipse.core.launcher.Main -application org.eclipse.ant.core.antRunner -Declipse.home=%eclipse_path% -Dbuilder=%cruisecontrol_path%/projects/
It also took me a while to teak the build.properties setup now I have it using the CruiseControl timestamp and build number to name each build.












Is that java in a java task in ant? We are having some difficulty with this? We get [java] Java Result: 13
If we sete fork=”true” then the Eclipse IDE comes up.
The java task does not appear to get the apllication and buildfile args.
We use the ant tag (in version 2.5) http://cruisecontrol.sourceforge.net/main/configxml.html#ant with Eclipse 3.2
ant usedebug=”false” uselogger=”true” time=”1200″
antscript=”projects/${project.name}/build.bat”
buildfile=”/eclipse/plugins/org.eclipse.pde.build_3.2.0.v20060603/scripts/productBuild/productBuild.xml”
Note this has changed for Eclipse 3.3