david_williams | 0c366d3 | 2006-12-10 07:08:39 +0000 | [diff] [blame] | 1 | <project name="Build specific targets and properties" default="build"> |
| 2 | <target name="build"> |
david_williams | 54315a7 | 2007-02-14 22:50:44 +0000 | [diff] [blame] | 3 | <java jar="${eclipse.launcher}" fork="true" failonerror="true"> |
david_williams | 0c366d3 | 2006-12-10 07:08:39 +0000 | [diff] [blame] | 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="-DbuildBranch=${buildBranch}" /> |
| 13 | <jvmarg value="-DbuildType=${buildType}" /> |
| 14 | <jvmarg value="-DbuildId=${buildId}" /> |
| 15 | <jvmarg value="-DjavacDebugInfo=on" /> |
| 16 | <jvmarg value="-DmapVersionTag=${mapVersionTag}" /> |
| 17 | <jvmarg value="-Dbuild.distribution=${build.distribution}" /> |
| 18 | <jvmarg value="-DbuildDirectory=${buildDirectory}" /> |
| 19 | <jvmarg value="-Dwtp.builder.home=${wtp.builder.home}" /> |
| 20 | <arg value="-application" /> |
| 21 | <arg value="org.eclipse.ant.core.antRunner" /> |
| 22 | <arg value="-buildfile" /> |
| 23 | <arg value="${ant.file}" /> |
| 24 | <arg value="publish" /> |
| 25 | </java> |
| 26 | </target> |
| 27 | |
| 28 | <!-- ===================================================================== --> |
| 29 | <!-- Steps to do to publish the build results --> |
| 30 | <!-- ===================================================================== --> |
| 31 | <target name="publish"> |
| 32 | <dirname file="${ant.file}" property="component.dir" /> |
| 33 | <ant antfile="${wtp.builder.home}/scripts/build/label.xml" /> |
| 34 | <property file="${buildDirectory}/label.properties" /> |
| 35 | |
| 36 | <property name="publish.xml" value="${component.dir}/publish.xml" /> |
| 37 | |
| 38 | <property name="indexFileName" value="index.php" /> |
| 39 | <property name="result" value="${buildDirectory}/${buildLabel}" /> |
| 40 | <property name="indexTemplateFilename" value="index.html.template" /> |
| 41 | |
| 42 | <condition property="isBuildTested" value="true"> |
| 43 | <available file="${buildDirectory}/${buildLabel}/testResults/consolelogs/wtptestlog.txt" /> |
| 44 | </condition> |
| 45 | <condition property="isBuildTested" value="false"> |
| 46 | <not> |
| 47 | <available file="${buildDirectory}/${buildLabel}/testResults/consolelogs/wtptestlog.txt" /> |
| 48 | </not> |
| 49 | </condition> |
| 50 | |
| 51 | <ant antfile="${publish.xml}" dir="${component.dir}"> |
david_williams | eb49d08 | 2007-05-01 03:03:15 +0000 | [diff] [blame] | 52 | <property name="dropTokenList" value="%wtppatch%,%wtpruntime%,%wtpsdk%,%wst%,%wst-sdk%,%wst-tests%,%jst-tests%,%wst-perf-tests%,%jst-perf-tests%,%jsf-runtime%,%jsf-sdk%,%jsf-tests%,%jpt-runtime%,%jpt-sdk%,%jpt-tests%" /> |
david_williams | 0c366d3 | 2006-12-10 07:08:39 +0000 | [diff] [blame] | 53 | |
| 54 | <!-- use this form if/when mirror redirects desired |
| 55 | <property name="webtoolsDownloadURL" value="http://www.eclipse.org/downloads/download.php?file=/webtools/patches/drops"/> |
| 56 | --> |
| 57 | <property name="webtoolsDownloadURL" value="/webtools/patches/drops"/> |
| 58 | |
| 59 | <property name="buildBranch" value="${buildBranch}" /> |
| 60 | <property name="isBuildTested" value="${isBuildTested}" /> |
| 61 | <property name="indexTemplateFilename" value="${indexTemplateFilename}" /> |
| 62 | </ant> |
| 63 | |
| 64 | <!-- Get the build map over for the results to point to. --> |
| 65 | <copy file="${buildDirectory}/directory.txt" tofile="${result}/directory.txt" /> |
| 66 | |
| 67 | <!-- Copy info for build identification --> |
| 68 | <copy file="${buildDirectory}/buildmachineinfo.properties" tofile="${result}/buildmachineinfo.properties" /> |
| 69 | |
| 70 | </target> |
| 71 | |
| 72 | |
| 73 | </project> |