Starting an Eclipse headless build from ant

The following snippet will allow you to start an headless eclipse instance and make it start an ant script:
<java classname="org.eclipse.core.launcher.Main" fork="true" failonerror="true" maxmemory="1024m" logError="true" resultproperty="eclipse.run.result">                            
  <arg value="-application"/>
  <arg value="com.ibm.etools.j2ee.ant.RunAnt"/>
  <arg value="-buildfile" />
  <arg value="${build.dir}\masterBuild.xml" />       
  <arg value="-data"/>
  <arg value="${workspace}"/>             
    <pathelement location="${wid.home}/eclipse/startup.jar"/>
  <jvmarg value="-Dlog.dir=${automation.home}/dailybuilds/output/logs"/>
I use this to run the Webspehre integration developper build process from cruise control in a cross platform way.

Aucun commentaire: