blob: 857e8e9c66d224c070961423906c7845a99aa672 [file] [log] [blame]
ndaib8cedc82005-09-13 18:00:32 +00001<project name="Build specific targets and properties" default="build">
david_williams42f9b242006-11-27 18:45:14 +00002
3 <!-- Note to be cross-platform, "environment variables" are only appropriate for
4 some variables, e.g. ones we set, since properties are case sensitive, even if
5 the environment variables on your operating system are not, e.g. it will
6 be ${env.Path} not ${env.PATH} on Windows -->
7 <property environment="env" />
8
9
david_williams2a01c5a2005-11-07 14:27:16 +000010 <target name="build">
ndaib6510d12005-11-20 20:48:01 +000011 <java classpath="${pde.builder.path}/startup.jar" fork="true" classname="org.eclipse.core.launcher.Main" failonerror="true">
david_williams42f9b242006-11-27 18:45:14 +000012 <jvmarg value="-Dosgi.ws=${env.BASEWS}" />
13 <jvmarg value="-Dosgi.os=${env.BASEOS}" />
14 <jvmarg value="-Dosgi.arch=${env.BASEARCH}" />
david_williams2a01c5a2005-11-07 14:27:16 +000015 <jvmarg value="-Dbuild.home=${build.home}" />
16 <jvmarg value="-Dbuild.trial=${build.trial}" />
ndai7383e5c2006-07-08 21:08:01 +000017 <jvmarg value="-DbuildBranch=${buildBranch}" />
ndaidab24cb2006-07-28 15:22:38 +000018 <jvmarg value="-Dbuild.pack-all-in-one=${build.pack-all-in-one}" />
david_williams2a01c5a2005-11-07 14:27:16 +000019 <jvmarg value="-DbuildType=${buildType}" />
20 <jvmarg value="-DbuildId=${buildId}" />
21 <jvmarg value="-DjavacDebugInfo=on" />
22 <jvmarg value="-DmapVersionTag=${mapVersionTag}" />
23 <jvmarg value="-Dbuild.distribution=${build.distribution}" />
24 <jvmarg value="-DbuildDirectory=${buildDirectory}" />
25 <jvmarg value="-Dwtp.builder.home=${wtp.builder.home}" />
26 <arg value="-application" />
27 <arg value="org.eclipse.ant.core.antRunner" />
28 <arg value="-buildfile" />
29 <arg value="${ant.file}" />
30 <arg value="publish" />
31 </java>
32 </target>
ndaib8cedc82005-09-13 18:00:32 +000033
david_williams2a01c5a2005-11-07 14:27:16 +000034 <!-- ===================================================================== -->
35 <!-- Steps to do to publish the build results -->
36 <!-- ===================================================================== -->
37 <target name="publish">
38 <dirname file="${ant.file}" property="component.dir" />
39 <ant antfile="${wtp.builder.home}/scripts/build/label.xml" />
40 <property file="${buildDirectory}/label.properties" />
ndaib8cedc82005-09-13 18:00:32 +000041
david_williams2a01c5a2005-11-07 14:27:16 +000042 <property name="publish.xml" value="${component.dir}/publish.xml" />
ndaib8cedc82005-09-13 18:00:32 +000043
david_williams2a01c5a2005-11-07 14:27:16 +000044 <property name="indexFileName" value="index.php" />
45 <property name="result" value="${buildDirectory}/${buildLabel}" />
46 <property name="indexTemplateFilename" value="index.html.template" />
ndaib8cedc82005-09-13 18:00:32 +000047
david_williams2a01c5a2005-11-07 14:27:16 +000048 <condition property="isBuildTested" value="true">
49 <available file="${buildDirectory}/${buildLabel}/testResults/consolelogs/wtptestlog.txt" />
50 </condition>
51 <condition property="isBuildTested" value="false">
52 <not>
53 <available file="${buildDirectory}/${buildLabel}/testResults/consolelogs/wtptestlog.txt" />
54 </not>
55 </condition>
ndaib8cedc82005-09-13 18:00:32 +000056
david_williams2a01c5a2005-11-07 14:27:16 +000057 <ant antfile="${publish.xml}" dir="${component.dir}">
david_williamsd913e922006-11-13 07:24:21 +000058 <property name="dropTokenList" value="%wtpruntime%,%wtpsdk%,%wst%,%wst-sdk%,%wst-tests%,%jst-tests%,%wst-perf-tests%,%jst-perf-tests%,%jsf-runtime%,%jsf-sdk%,%jsf-tests%,%jpa-runtime%,%jpa-sdk%,%jpa-tests%" />
david_williams2a01c5a2005-11-07 14:27:16 +000059 <property name="webtoolsDownloadURL" value="http://www.eclipse.org/downloads/download.php?file=/webtools/committers/drops"/>
ndaie4d89b22005-09-14 18:15:14 +000060
ndai837c7ae2006-07-08 16:41:44 +000061 <property name="buildBranch" value="${buildBranch}" />
david_williams42f9b242006-11-27 18:45:14 +000062 <property name="build.pack-all-in-one" value="${build.pack-all-in-one}"/>
ndaidab24cb2006-07-28 15:22:38 +000063
david_williams2a01c5a2005-11-07 14:27:16 +000064 <property name="isBuildTested" value="${isBuildTested}" />
65 <property name="indexTemplateFilename" value="${indexTemplateFilename}" />
66 </ant>
ndaib8cedc82005-09-13 18:00:32 +000067
david_williams2a01c5a2005-11-07 14:27:16 +000068 <!-- Get the build map over for the results to point to. -->
69 <copy file="${buildDirectory}/directory.txt" tofile="${result}/directory.txt" />
ndaib8cedc82005-09-13 18:00:32 +000070
david_williams2a01c5a2005-11-07 14:27:16 +000071 <!-- Copy info for build identification -->
72 <copy file="${buildDirectory}/buildmachineinfo.properties" tofile="${result}/buildmachineinfo.properties" />
73
74 </target>
ndaib8cedc82005-09-13 18:00:32 +000075
76
77</project>