ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 1 | <project name="Build specific targets and properties" default="build"> |
david_williams | 2a01c5a | 2005-11-07 14:27:16 +0000 | [diff] [blame^] | 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="-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> |
ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 26 | |
david_williams | 2a01c5a | 2005-11-07 14:27:16 +0000 | [diff] [blame^] | 27 | <!-- ===================================================================== --> |
| 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" /> |
ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 34 | |
david_williams | 2a01c5a | 2005-11-07 14:27:16 +0000 | [diff] [blame^] | 35 | <property name="publish.xml" value="${component.dir}/publish.xml" /> |
ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 36 | |
david_williams | 2a01c5a | 2005-11-07 14:27:16 +0000 | [diff] [blame^] | 37 | <property name="indexFileName" value="index.php" /> |
| 38 | <property name="result" value="${buildDirectory}/${buildLabel}" /> |
| 39 | <property name="indexTemplateFilename" value="index.html.template" /> |
ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 40 | |
david_williams | 2a01c5a | 2005-11-07 14:27:16 +0000 | [diff] [blame^] | 41 | <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> |
ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 49 | |
david_williams | 2a01c5a | 2005-11-07 14:27:16 +0000 | [diff] [blame^] | 50 | <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"/> |
ndai | e4d89b2 | 2005-09-14 18:15:14 +0000 | [diff] [blame] | 53 | |
david_williams | 2a01c5a | 2005-11-07 14:27:16 +0000 | [diff] [blame^] | 54 | <property name="isBuildTested" value="${isBuildTested}" /> |
| 55 | <property name="indexTemplateFilename" value="${indexTemplateFilename}" /> |
| 56 | </ant> |
ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 57 | |
david_williams | 2a01c5a | 2005-11-07 14:27:16 +0000 | [diff] [blame^] | 58 | <!-- Get the build map over for the results to point to. --> |
| 59 | <copy file="${buildDirectory}/directory.txt" tofile="${result}/directory.txt" /> |
ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 60 | |
david_williams | 2a01c5a | 2005-11-07 14:27:16 +0000 | [diff] [blame^] | 61 | <!-- Copy info for build identification --> |
| 62 | <copy file="${buildDirectory}/buildmachineinfo.properties" tofile="${result}/buildmachineinfo.properties" /> |
| 63 | |
| 64 | </target> |
ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 65 | |
| 66 | |
| 67 | </project> |