89047edaa5b1c3dce3abeee4f8019808a45e0b19
[taxeditor.git] / taxeditor-feature-product / build / product.ant
1 <project>
2 <property name="eclipse.home" value="/Applications/eclipse-helios"/>
3
4 <pathconvert property="equinox.launcher.jar">
5 <first count="1">
6 <sort>
7 <fileset dir="${eclipse.home}/plugins" includes="**/org.eclipse.equinox.launcher_*.jar"/>
8 <reverse xmlns="antlib:org.apache.tools.ant.types.resources.comparators">
9 <date/>
10 </reverse>
11 </sort>
12 </first>
13 </pathconvert>
14
15 <target name="create.product">
16 <property name="destination" location="${sp:destination}"/>
17 <delete dir="${destination}"></delete>
18 <makeurl property="repository" file="${sp:repository}"/>
19 <mkdir dir="${destination}"/>
20 <echoproperties ></echoproperties>
21 <echo message="${equinox.launcher.jar}"/>
22 <echo message="${repository}"/>
23 <echo message="${destination}"/>
24 <java jar="${equinox.launcher.jar}" fork="true" failonerror="true" >
25 <arg value="-application"/>
26 <arg value="org.eclipse.equinox.p2.director"/>
27 <arg value="-artifactRepository"/>
28 <arg value="${repository}"/>
29 <arg value="-metadataRepository"/>
30 <arg value="${repository}"/>
31 <arg value="-destination"/>
32 <arg value="${destination}"/>
33 <arg value="-bundlepool"/>
34 <arg value="${destination}"/>
35 <arg value="-profile"/>
36 <arg value="${profile}"/>
37 <arg value="-profileProperties" />
38 <arg value="org.eclipse.update.install.features=true" />
39 <arg value="-installIU"/>
40 <arg value="${iu}"/>
41 <arg value="-p2.os" />
42 <arg value="${target.os}" />
43 <arg value="-p2.ws" />
44 <arg value="${target.ws}" />
45 <arg value="-p2.arch" />
46 <arg value="${target.arch}" />
47 <arg value="-consoleLog"/>
48 <jvmarg value="-Declipse.p2.data.area=${destination}/p2"/>
49 <jvmarg value="-Declipse.p2.profile=${profile}"/>
50 </java>
51 </target>
52 </project>