blob: 3008c7d709b4c39adc97215612a04f8e0a9cd17c [file] [log] [blame]
ndaib8cedc82005-09-13 18:00:32 +00001<project name="Build specific targets and properties" default="build">
2 <target name="build">
3 <java classpath="${build.home}/${eclipse.builder}/startup.jar" fork="true" classname="org.eclipse.core.launcher.Main" failonerror="true">
4 <jvmarg value="-Dosgi.ws=${basews}" />
5 <jvmarg value="-Dosgi.os=${baseos}" />
6 <jvmarg value="-Dosgi.arch=${basearch}" />
7 <jvmarg value="-Dbasews=${basews}" />
8 <jvmarg value="-Dbaseos=${baseos}" />
9 <jvmarg value="-Dbasearch=${basearch}" />
10 <jvmarg value="-Dbuild.home=${build.home}" />
11 <jvmarg value="-Dbuild.trial=${build.trial}" />
12 <jvmarg value="-DbuildType=${buildType}" />
13 <jvmarg value="-DjavacDebugInfo=on" />
14 <jvmarg value="-DmapVersionTag=${mapVersionTag}" />
15 <jvmarg value="-Dbuild.distribution=${build.distribution}" />
16 <jvmarg value="-DbuildDirectory=${buildDirectory}" />
17 <arg value="-application" />
18 <arg value="org.eclipse.ant.core.antRunner" />
19 <arg value="-buildfile" />
20 <arg value="${ant.file}" />
21 <arg value="publish" />
22 </java>
23 </target>
24
25 <!-- ===================================================================== -->
26 <!-- Steps to do to publish the build results -->
27 <!-- ===================================================================== -->
28 <target name="publish">
29 <dirname file="${ant.file}" property="component.dir" />
30 <ant antfile="${component.dir}/../../scripts/build/label.xml" />
31 <property file="${buildDirectory}/label.properties" />
32
33 <property name="publish.xml" value="${component.dir}/publish.xml" />
34
35 <property name="indexFileName" value="index.php" />
36 <property name="result" value="${buildDirectory}/${buildLabel}" />
37 <property name="indexTemplateFilename" value="index.html.template" />
38
39 <condition property="isBuildTested" value="true">
40 <available file="${buildDirectory}/${buildLabel}/testResults/consolelogs/wtptestlog.txt" />
41 </condition>
42 <condition property="isBuildTested" value="false">
43 <not>
44 <available file="${buildDirectory}/${buildLabel}/testResults/consolelogs/wtptestlog.txt" />
45 </not>
46 </condition>
47
48 <ant antfile="${publish.xml}" dir="${component.dir}">
49 <property name="dropTokenList" value="%wtpruntime%,%wtpsdk%,%wst%,%wst-sdk%,%wst-tests%,%jst-tests%,%wst-perf-tests%,%jst-perf-tests%" />
50 <property name="isBuildTested" value="${isBuildTested}" />
51 <property name="indexTemplateFilename" value="${indexTemplateFilename}" />
52 </ant>
53
54 <!-- Get the build map over for the results to point to. -->
55 <copy file="${buildDirectory}/directory.txt" tofile="${result}/directory.txt" />
56
57 </target>
58
59
60</project>