Feb 21 2007

CruiseControl and Eclipse Headless Build

Published by tom at 8:05 pm under CruiseControl, Eclipse

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/ /buildConfiguration %*

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.

Post to Twitter Tweet This Post

2 responses so far

2 Responses to “CruiseControl and Eclipse Headless Build”

  1. Ted Kubaskaon 05 May 2007 at 2:01 pm

    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.

  2. tomon 06 May 2007 at 6:21 pm

    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

Trackback URI | Comments RSS

Leave a Reply