blob: c7c5638f3d78c42ed81c86dcb480f1faeb949bc4 [file] [log] [blame]
ndaib8cedc82005-09-13 18:00:32 +00001<project name="Build specific targets and properties" default="build">
david_williams2a01c5a2005-11-07 14:27:16 +00002 <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="-DbuildId=${buildId}" />
14 <jvmarg value="-DjavacDebugInfo=on" />
15 <jvmarg value="-DmapVersionTag=${mapVersionTag}" />
16 <jvmarg value="-Dbuild.distribution=${build.distribution}" />
17 <jvmarg value="-DbuildDirectory=${buildDirectory}" />
18 <jvmarg value="-Dwtp.builder.home=${wtp.builder.home}" />
19 <arg value="-application" />
20 <arg value="org.eclipse.ant.core.antRunner" />
21 <arg value="-buildfile" />
22 <arg value="${ant.file}" />
23 <arg value="publish" />
24 </java>
25 </target>
ndaib8cedc82005-09-13 18:00:32 +000026
david_williams2a01c5a2005-11-07 14:27:16 +000027 <!-- ===================================================================== -->
28 <!-- Steps to do to publish the build results -->
29 <!-- ===================================================================== -->
30 <target name="publish">
31 <dirname file="${ant.file}" property="component.dir" />
32 <ant antfile="${wtp.builder.home}/scripts/build/label.xml" />
33 <property file="${buildDirectory}/label.properties" />
ndaib8cedc82005-09-13 18:00:32 +000034
david_williams2a01c5a2005-11-07 14:27:16 +000035 <property name="publish.xml" value="${component.dir}/publish.xml" />
ndaib8cedc82005-09-13 18:00:32 +000036
david_williams2a01c5a2005-11-07 14:27:16 +000037 <property name="indexFileName" value="index.php" />
38 <property name="result" value="${buildDirectory}/${buildLabel}" />
39 <property name="indexTemplateFilename" value="index.html.template" />
ndaib8cedc82005-09-13 18:00:32 +000040
david_williams2a01c5a2005-11-07 14:27:16 +000041 <condition property="isBuildTested" value="true">
42 <available file="${buildDirectory}/${buildLabel}/testResults/consolelogs/wtptestlog.txt" />
43 </condition>
44 <condition property="isBuildTested" value="false">
45 <not>
46 <available file="${buildDirectory}/${buildLabel}/testResults/consolelogs/wtptestlog.txt" />
47 </not>
48 </condition>
ndaib8cedc82005-09-13 18:00:32 +000049
david_williams2a01c5a2005-11-07 14:27:16 +000050 <ant antfile="${publish.xml}" dir="${component.dir}">
51 <property name="dropTokenList" value="%wtpruntime%,%wtpsdk%,%wst%,%wst-sdk%,%wst-tests%,%jst-tests%,%wst-perf-tests%,%jst-perf-tests%" />
52 <property name="webtoolsDownloadURL" value="http://www.eclipse.org/downloads/download.php?file=/webtools/committers/drops"/>
ndaie4d89b22005-09-14 18:15:14 +000053
david_williams2a01c5a2005-11-07 14:27:16 +000054 <property name="isBuildTested" value="${isBuildTested}" />
55 <property name="indexTemplateFilename" value="${indexTemplateFilename}" />
56 </ant>
ndaib8cedc82005-09-13 18:00:32 +000057
david_williams2a01c5a2005-11-07 14:27:16 +000058 <!-- Get the build map over for the results to point to. -->
59 <copy file="${buildDirectory}/directory.txt" tofile="${result}/directory.txt" />
ndaib8cedc82005-09-13 18:00:32 +000060
david_williams2a01c5a2005-11-07 14:27:16 +000061 <!-- Copy info for build identification -->
62 <copy file="${buildDirectory}/buildmachineinfo.properties" tofile="${result}/buildmachineinfo.properties" />
63
64 </target>
ndaib8cedc82005-09-13 18:00:32 +000065
66
67</project>