blob: a40f7fc57ce74736d9122b811d4676386ddb4440 [file] [log] [blame]
ndai91f5c9b2006-03-12 13:56:45 +00001<project name="Build specific targets and properties" default="build">
david_williams42f9b242006-11-27 18:45:14 +00002
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_williams54315a72007-02-14 22:50:44 +000011 <java jar="${eclipse.launcher}" fork="true" failonerror="true">
david_williams42f9b242006-11-27 18:45:14 +000012 <jvmarg value="-Dosgi.ws=${env.BASEWS}" />
13 <jvmarg value="-Dosgi.os=${env.BASEOS}" />
14 <jvmarg value="-Dosgi.arch=${env.BASEARCH}" />
david_williamsae0e4cb2006-11-11 02:55:51 +000015 <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>
ndai91f5c9b2006-03-12 13:56:45 +000031
david_williamsae0e4cb2006-11-11 02:55:51 +000032 <!-- ===================================================================== -->
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" />
ndai91f5c9b2006-03-12 13:56:45 +000039
david_williamsae0e4cb2006-11-11 02:55:51 +000040 <property name="publish.xml" value="${component.dir}/publish.xml" />
ndai91f5c9b2006-03-12 13:56:45 +000041
david_williamsae0e4cb2006-11-11 02:55:51 +000042 <property name="indexFileName" value="index.php" />
43 <property name="result" value="${buildDirectory}/${buildLabel}" />
44 <property name="indexTemplateFilename" value="index.html.template" />
ndai91f5c9b2006-03-12 13:56:45 +000045
david_williamsae0e4cb2006-11-11 02:55:51 +000046 <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>
ndai91f5c9b2006-03-12 13:56:45 +000054
david_williamsae0e4cb2006-11-11 02:55:51 +000055 <ant antfile="${publish.xml}" dir="${component.dir}">
56 <property name="dropTokenList" value="%dali-runtime%,%dali-tests%" />
ndai91f5c9b2006-03-12 13:56:45 +000057
david_williamsae0e4cb2006-11-11 02:55:51 +000058 <property name="daliDownloadURL" value="http://www.eclipse.org/downloads/download.php?file=/technology/dali/committers/drops" />
ndai91f5c9b2006-03-12 13:56:45 +000059
david_williamsae0e4cb2006-11-11 02:55:51 +000060 <property name="isBuildTested" value="${isBuildTested}" />
61 <property name="indexTemplateFilename" value="${indexTemplateFilename}" />
62 </ant>
ndai91f5c9b2006-03-12 13:56:45 +000063
david_williamsae0e4cb2006-11-11 02:55:51 +000064 <!-- Get the build map over for the results to point to. -->
65 <copy file="${buildDirectory}/directory.txt" tofile="${result}/directory.txt" />
ndai91f5c9b2006-03-12 13:56:45 +000066
david_williamsae0e4cb2006-11-11 02:55:51 +000067 <!-- Copy info for build identification -->
68 <copy file="${buildDirectory}/buildmachineinfo.properties" tofile="${result}/buildmachineinfo.properties" />
69
70 </target>
ndai91f5c9b2006-03-12 13:56:45 +000071
72
73</project>