Switching rcp headless build (ant task) to use target platform [message #886264] |
Thu, 14 June 2012 11:19  |
Eclipse User |
|
|
|
Hi there,
i've got an existing Product build using some ant build scripts that are called by a jenkins job. Everything worked fine over some years. Now the product is evolving from eclipse 3.2-base to indigo-base. Therefore we decided to define and use a target platform.
One of the build scripts calls a headless product build (see code below).
My goal is to change the headless build to use a target platform (defined by total amount of 4 directories) instead of a single eclipse directory.
Does anybody know how to revise the ant task below to achieve this goal?
I was hoping to find something like an additional parameter to state the .target-file defining the target platform.
My target platform is placed under version control. If there is no other way, i could always copy the four different directories into one directory and work like before, but i don't think it is a very good idea to do this, do you?
Earlier today I checked the buckminster-plugin but did not get to what I want to do.
Thanks for any help or hints,
Greets Alex
<target name="build" description="generate the RCP" depends="copy-projects">
<java fork="true" jar="${eclipse.dir}/startup.jar">
<jvmarg line="-Xms512m" />
<jvmarg line="-Xmx1024m" />
<arg line="-application org.eclipse.ant.core.antRunner" />
<arg line="-buildfile ${eclipse.dir}/plugins/org.eclipse.pde.build_3.2.1.r321_v20060823/scripts/productBuild/productBuild.xml" />
<arg line="-Dbuilder=${build.config.dir}" />
<arg line="-Dproduct=/VAUDES_Application/vaudes.product" />
<arg line="-DbuildDirectory=${build.build.dir}" />
<arg line="-DbaseLocation=${eclipse.dir}" />
</java>
<touch file="${build.exe.dir}/Vaudes/odisc.exe" />
<zip update="true" duplicate="preserve" whenempty="fail" basedir="${build.exe.dir}" destfile="${build.build.dir}/I.Vaudes/Vaudes-win32.win32.x86.zip" />
<copy file="${build.build.dir}/I.Vaudes/Vaudes-win32.win32.x86.zip" todir="${application.root.dir}/build" />
</target>
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02798 seconds