rsrinivasan | 01cf8ac | 2006-04-10 19:37:11 +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 | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 4 | <jvmarg value="-Dosgi.ws=${env.BASEWS}" /> |
| 5 | <jvmarg value="-Dosgi.os=${env.BASEOS}" /> |
| 6 | <jvmarg value="-Dosgi.arch=${env.BASEARCH}" /> |
rsrinivasan | 01cf8ac | 2006-04-10 19:37:11 +0000 | [diff] [blame] | 7 | <jvmarg value="-Dbuild.home=${build.home}" /> |
| 8 | <jvmarg value="-Dbuild.trial=${build.trial}" /> |
| 9 | <jvmarg value="-DbuildType=${buildType}" /> |
| 10 | <jvmarg value="-DbuildId=${buildId}" /> |
| 11 | <jvmarg value="-DjavacDebugInfo=on" /> |
| 12 | <jvmarg value="-DmapVersionTag=${mapVersionTag}" /> |
| 13 | <jvmarg value="-Dbuild.distribution=${build.distribution}" /> |
| 14 | <jvmarg value="-DbuildDirectory=${buildDirectory}" /> |
| 15 | <jvmarg value="-Dwtp.builder.home=${wtp.builder.home}" /> |
| 16 | <arg value="-application" /> |
| 17 | <arg value="org.eclipse.ant.core.antRunner" /> |
| 18 | <arg value="-buildfile" /> |
| 19 | <arg value="${ant.file}" /> |
| 20 | <arg value="publish" /> |
| 21 | </java> |
| 22 | </target> |
| 23 | |
| 24 | <!-- ===================================================================== --> |
| 25 | <!-- Steps to do to publish the build results --> |
| 26 | <!-- ===================================================================== --> |
| 27 | <target name="publish"> |
| 28 | <dirname file="${ant.file}" property="component.dir" /> |
| 29 | <ant antfile="${wtp.builder.home}/scripts/build/label.xml" /> |
| 30 | <property file="${buildDirectory}/label.properties" /> |
| 31 | |
| 32 | <property name="publish.xml" value="${component.dir}/publish.xml" /> |
| 33 | |
| 34 | <property name="indexFileName" value="index.php" /> |
| 35 | <property name="result" value="${buildDirectory}/${buildLabel}" /> |
| 36 | <property name="indexTemplateFilename" value="index.html.template" /> |
| 37 | |
| 38 | <condition property="isBuildTested" value="true"> |
| 39 | <available file="${buildDirectory}/${buildLabel}/testResults/consolelogs/jsftestlog.txt" /> |
| 40 | </condition> |
| 41 | <condition property="isBuildTested" value="false"> |
| 42 | <not> |
| 43 | <available file="${buildDirectory}/${buildLabel}/testResults/consolelogs/jsftestlog.txt" /> |
| 44 | </not> |
| 45 | </condition> |
| 46 | |
| 47 | <ant antfile="${publish.xml}" dir="${component.dir}"> |
| 48 | <property name="dropTokenList" value="%jsf-runtime%,%jsf-tests%" /> |
| 49 | |
| 50 | <!-- To Do: No committer drop site for JSF yet ? --> |
| 51 | <property name="jsfDownloadURL" value="http://www.eclipse.org/downloads/download.php?file=/webtools/jsf/committers/drops"/> |
| 52 | |
| 53 | <property name="isBuildTested" value="${isBuildTested}" /> |
| 54 | <property name="indexTemplateFilename" value="${indexTemplateFilename}" /> |
| 55 | </ant> |
| 56 | |
| 57 | <!-- Get the build map over for the results to point to. --> |
| 58 | <copy file="${buildDirectory}/directory.txt" tofile="${result}/directory.txt" /> |
| 59 | |
| 60 | <!-- Copy info for build identification --> |
| 61 | <copy file="${buildDirectory}/buildmachineinfo.properties" tofile="${result}/buildmachineinfo.properties" /> |
| 62 | |
| 63 | </target> |
| 64 | |
| 65 | |
| 66 | </project> |