ndai | 91f5c9b | 2006-03-12 13:56:45 +0000 | [diff] [blame] | 1 | <project name="Build specific targets and properties" default="build"> |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 2 | |
| 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 | |
| 10 | <target name="build"> |
david_williams | 54315a7 | 2007-02-14 22:50:44 +0000 | [diff] [blame] | 11 | <java jar="${eclipse.launcher}" fork="true" failonerror="true"> |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 12 | <jvmarg value="-Dosgi.ws=${env.BASEWS}" /> |
| 13 | <jvmarg value="-Dosgi.os=${env.BASEOS}" /> |
| 14 | <jvmarg value="-Dosgi.arch=${env.BASEARCH}" /> |
david_williams | ae0e4cb | 2006-11-11 02:55:51 +0000 | [diff] [blame] | 15 | <jvmarg value="-Dbuild.home=${build.home}" /> |
| 16 | <jvmarg value="-Dbuild.trial=${build.trial}" /> |
| 17 | <jvmarg value="-DbuildType=${buildType}" /> |
| 18 | <jvmarg value="-DbuildId=${buildId}" /> |
| 19 | <jvmarg value="-DjavacDebugInfo=on" /> |
| 20 | <jvmarg value="-DmapVersionTag=${mapVersionTag}" /> |
| 21 | <jvmarg value="-Dbuild.distribution=${build.distribution}" /> |
| 22 | <jvmarg value="-DbuildDirectory=${buildDirectory}" /> |
| 23 | <jvmarg value="-Dwtp.builder.home=${wtp.builder.home}" /> |
| 24 | <arg value="-application" /> |
| 25 | <arg value="org.eclipse.ant.core.antRunner" /> |
| 26 | <arg value="-buildfile" /> |
| 27 | <arg value="${ant.file}" /> |
| 28 | <arg value="publish" /> |
| 29 | </java> |
| 30 | </target> |
ndai | 91f5c9b | 2006-03-12 13:56:45 +0000 | [diff] [blame] | 31 | |
david_williams | ae0e4cb | 2006-11-11 02:55:51 +0000 | [diff] [blame] | 32 | <!-- ===================================================================== --> |
| 33 | <!-- Steps to do to publish the build results --> |
| 34 | <!-- ===================================================================== --> |
| 35 | <target name="publish"> |
| 36 | <dirname file="${ant.file}" property="component.dir" /> |
| 37 | <ant antfile="${wtp.builder.home}/scripts/build/label.xml" /> |
| 38 | <property file="${buildDirectory}/label.properties" /> |
ndai | 91f5c9b | 2006-03-12 13:56:45 +0000 | [diff] [blame] | 39 | |
david_williams | ae0e4cb | 2006-11-11 02:55:51 +0000 | [diff] [blame] | 40 | <property name="publish.xml" value="${component.dir}/publish.xml" /> |
ndai | 91f5c9b | 2006-03-12 13:56:45 +0000 | [diff] [blame] | 41 | |
david_williams | ae0e4cb | 2006-11-11 02:55:51 +0000 | [diff] [blame] | 42 | <property name="indexFileName" value="index.php" /> |
| 43 | <property name="result" value="${buildDirectory}/${buildLabel}" /> |
| 44 | <property name="indexTemplateFilename" value="index.html.template" /> |
ndai | 91f5c9b | 2006-03-12 13:56:45 +0000 | [diff] [blame] | 45 | |
david_williams | ae0e4cb | 2006-11-11 02:55:51 +0000 | [diff] [blame] | 46 | <condition property="isBuildTested" value="true"> |
| 47 | <available file="${buildDirectory}/${buildLabel}/testResults/consolelogs/dalitestlog.txt" /> |
| 48 | </condition> |
| 49 | <condition property="isBuildTested" value="false"> |
| 50 | <not> |
| 51 | <available file="${buildDirectory}/${buildLabel}/testResults/consolelogs/dalitestlog.txt" /> |
| 52 | </not> |
| 53 | </condition> |
ndai | 91f5c9b | 2006-03-12 13:56:45 +0000 | [diff] [blame] | 54 | |
david_williams | ae0e4cb | 2006-11-11 02:55:51 +0000 | [diff] [blame] | 55 | <ant antfile="${publish.xml}" dir="${component.dir}"> |
| 56 | <property name="dropTokenList" value="%dali-runtime%,%dali-tests%" /> |
ndai | 91f5c9b | 2006-03-12 13:56:45 +0000 | [diff] [blame] | 57 | |
david_williams | ae0e4cb | 2006-11-11 02:55:51 +0000 | [diff] [blame] | 58 | <property name="daliDownloadURL" value="http://www.eclipse.org/downloads/download.php?file=/technology/dali/committers/drops" /> |
ndai | 91f5c9b | 2006-03-12 13:56:45 +0000 | [diff] [blame] | 59 | |
david_williams | ae0e4cb | 2006-11-11 02:55:51 +0000 | [diff] [blame] | 60 | <property name="isBuildTested" value="${isBuildTested}" /> |
| 61 | <property name="indexTemplateFilename" value="${indexTemplateFilename}" /> |
| 62 | </ant> |
ndai | 91f5c9b | 2006-03-12 13:56:45 +0000 | [diff] [blame] | 63 | |
david_williams | ae0e4cb | 2006-11-11 02:55:51 +0000 | [diff] [blame] | 64 | <!-- Get the build map over for the results to point to. --> |
| 65 | <copy file="${buildDirectory}/directory.txt" tofile="${result}/directory.txt" /> |
ndai | 91f5c9b | 2006-03-12 13:56:45 +0000 | [diff] [blame] | 66 | |
david_williams | ae0e4cb | 2006-11-11 02:55:51 +0000 | [diff] [blame] | 67 | <!-- Copy info for build identification --> |
| 68 | <copy file="${buildDirectory}/buildmachineinfo.properties" tofile="${result}/buildmachineinfo.properties" /> |
| 69 | |
| 70 | </target> |
ndai | 91f5c9b | 2006-03-12 13:56:45 +0000 | [diff] [blame] | 71 | |
| 72 | |
| 73 | </project> |