Starting eclipse headless build by ant task [message #302093] |
Wed, 12 April 2006 09:03 |
Eclipse User |
|
|
|
Originally posted by: srmeier.access.unizh.ch
Hi all
I'm wondering if it is not possible to start an eclipse headless build
with the help of an ant script instead of a shell script, or more precise:
I always saw a shell script like the following to start up an ant
headless build.
java -cp $ECLIPSE_HOME/startup.jar org.eclipse.core.launcher.Main
-application org.eclipse.ant.core.antRunner -debug -verbose -buildfile
../build.xml -Dcomponent=./ -Dconfigs="*,*,*" -Dbaseos=win32
-Dbasews=win32 -Dbasearch=x86 -Djavacfailonerror=true
-Dpde.build.scripts=$ECLIPSE_HOME/plugins/org.eclipse.pde.bu ild_3.1.0/scripts/
-DbaseLocation=$ECLIPSE_HOME
I tried now to integrate this call into an ant target like the following:
<java classname="org.eclipse.core.launcher.Main" fork="true">
<classpath>
<pathelement path="${java.class.path}" />
<pathelement location="${eclipse_home}/startup.jar" />
</classpath>
<arg value="-application org.eclipse.ant.core.antRunner"/>
<arg value="-debug" />
<arg value="-verbose"/>
<arg value="-buildfile ./build.xml"/>
<arg value="-Dcomponent=./" />
<arg value='-Dconfigs="*,*,*"' />
<arg value="-Dbaseos=win32" />
<arg value="-Dbasews=win32"/>
<arg value="-Dbasearch=x86" />
<arg value="-Djavacfailonerror=true" />
<arg
value=" -Dpde.build.scripts=${eclipse_home}/plugins/org.eclipse.pde. build_3.1.0/scripts/ "/>
<arg value="-DbaseLocation=${eclipse_home}" />
<arg value="-Dbase=${eclipse_base}" />
</java>
Somehow this does not work. The workspace choose dialog is started up
and it is said that the workspace is already in use. It does definitely
not the same as when executed by the script.
Where is the problem? How do I call an eclipse headless build by an ant
target?
Thanx in advance
Silvio
|
|
|
|
Powered by
FUDForum. Page generated in 0.03324 seconds