blob: 53c243b5ddbdad031742ec953de394a936342719 [file] [log] [blame]
david_williamsbb0fc612006-05-19 10:28:20 +00001<project default="Build" basedir=".">
2
3 <property file="committer.properties" />
4
5 <target name="Build">
6
7 <!-- set main builder file name, based on distribution and build type -->
8 <property name="wtpBuilder"
9 value="${build.home}/build-node/checkout/${build.distribution}-${buildType}/releng.wtpbuilder/build.xml" />
10
11
12
13 <!-- clean previous build -->
14 <antcall target="clean" />
15
16
17
18
19 <!-- check out fresh set of appropriate files -->
20 <!-- this is to make sure maps and builders are correct, but also to
21 make sure the cruisecontrol triggered "diffs" are accurate next
22 time around -->
23 <ant antfile="checkout.xml"
24 target="all"
25 dir="."
26 inheritall="false">
27 <property name="codir"
28 value="${build.home}/build-node/checkout/${build.distribution}-${buildType}" />
29 <property name="buildType"
30 value="${buildType}" />
31 <property name="mapVersionTag"
32 value="${mapVersionTag}" />
33 </ant>
34
35
36
37 <!-- build and create preliminary download site files -->
38 <ant antfile="${wtpBuilder}" target="build" />
39 <ant antfile="${wtpBuilder}" target="site" />
40 <!-- upload what we have so far -->
41 <ant antfile="${wtpBuilder}" target="upload">
42 <property name="wtpbuilder.upload.properties.file"
43 value="${basedir}/upload.properties" />
44 </ant>
45
46
47 <!-- test and create test summary files -->
48 <ant antfile="${wtpBuilder}" target="test" />
49 <ant antfile="${wtpBuilder}" target="site" />
50 <!-- upload what we have so far -->
51 <ant antfile="${wtpBuilder}" target="upload">
52 <property name="wtpbuilder.upload.properties.file"
53 value="${basedir}/upload.properties" />
54 </ant>
55
56
57 <!-- create what-is-fixed summary files -->
58 <ant antfile="${wtpBuilder}" target="whatisfixed">
59 <property name="wtpbuilder.whatisfixed.properties.file"
60 value="${basedir}/whatisfixed.properties" />
61 </ant>
62 <!-- upload final set of results -->
63 <ant antfile="${wtpBuilder}" target="upload">
64 <property name="wtpbuilder.upload.properties.file"
65 value="${basedir}/upload.properties" />
66 </ant>
67
68
69 </target>
70
71
72
73 <target name="clean" depends="check.clean" if="doClean">
74 <delete dir="${build.home}/build-${build.distribution}-${buildType}"
75 failonerror="false" />
76 <delete dir="${build.home}/test-${build.distribution}-${buildType}"
77 failonerror="false" />
78 </target>
79
80
81 <target name="check.clean">
82 <condition property="doClean">
83 <equals arg1="${build.clean}" arg2="true" />
84 </condition>
85 </target>
86
87
88</project>