| <project |
| name="Build specific targets and properties" |
| default="build"> |
| |
| <!-- Note to be cross-platform, "environment variables" are only appropriate for |
| some variables, e.g. ones we set, since properties are case sensitive, even if |
| the environment variables on your operating system are not, e.g. it will |
| be ${env.Path} not ${env.PATH} on Windows --> |
| <property environment="env" /> |
| |
| |
| <target name="build"> |
| <java |
| jar="${eclipse.launcher}" |
| fork="true" |
| failonerror="true"> |
| <jvmarg value="-Dosgi.ws=${env.BASEWS}" /> |
| <jvmarg value="-Dosgi.os=${env.BASEOS}" /> |
| <jvmarg value="-Dosgi.arch=${env.BASEARCH}" /> |
| <jvmarg value="-Dbuild.home=${build.home}" /> |
| <jvmarg value="-Dbuild.trial=${build.trial}" /> |
| <jvmarg value="-DbuildType=${buildType}" /> |
| <jvmarg value="-DbuildId=${buildId}" /> |
| <jvmarg value="-DmapVersionTag=${mapVersionTag}" /> |
| <jvmarg value="-Dbuild.distribution=${build.distribution}" /> |
| <jvmarg value="-DbuildDirectory=${buildDirectory}" /> |
| <jvmarg value="-Dwtp.builder.home=${wtp.builder.home}" /> |
| <arg value="-application" /> |
| <arg value="org.eclipse.ant.core.antRunner" /> |
| <arg value="-buildfile" /> |
| <arg value="${ant.file}" /> |
| <arg value="publish" /> |
| </java> |
| </target> |
| |
| <!-- ===================================================================== --> |
| <!-- Steps to do to publish the build results --> |
| <!-- ===================================================================== --> |
| <target name="publish"> |
| <dirname |
| file="${ant.file}" |
| property="component.dir" /> |
| <ant antfile="${wtp.builder.home}/scripts/build/label.xml" /> |
| <property file="${buildDirectory}/label.properties" /> |
| |
| <property |
| name="publish.xml" |
| value="${component.dir}/publish.xml" /> |
| |
| <property |
| name="indexFileName" |
| value="index.php" /> |
| <property |
| name="result" |
| value="${buildDirectory}/${buildLabel}" /> |
| <property |
| name="indexTemplateFilename" |
| value="index.html.template" /> |
| |
| <condition |
| property="isBuildTested" |
| value="true"> |
| <available |
| file="${buildDirectory}/${buildLabel}/testResults/consolelogs/dalitestlog.txt" /> |
| </condition> |
| <condition |
| property="isBuildTested" |
| value="false"> |
| <not> |
| <available |
| file="${buildDirectory}/${buildLabel}/testResults/consolelogs/dalitestlog.txt" /> |
| </not> |
| </condition> |
| |
| <ant |
| antfile="${publish.xml}" |
| dir="${component.dir}"> |
| <property |
| name="dropTokenList" |
| value="%dali-runtime%,%dali-tests%" /> |
| |
| <property |
| name="daliDownloadURL" |
| value="http://www.eclipse.org/downloads/download.php?file=/technology/dali/committers/drops" /> |
| |
| <property |
| name="isBuildTested" |
| value="${isBuildTested}" /> |
| <property |
| name="indexTemplateFilename" |
| value="${indexTemplateFilename}" /> |
| </ant> |
| |
| <!-- Get the build map over for the results to point to. --> |
| <copy |
| file="${buildDirectory}/directory.txt" |
| tofile="${result}/directory.txt" /> |
| |
| <!-- Copy info for build identification --> |
| <copy |
| file="${buildDirectory}/buildmachineinfo.properties" |
| tofile="${result}/buildmachineinfo.properties" /> |
| |
| </target> |
| |
| |
| </project> |