blob: bbbb61de14fc148ecaa51eb14c889d1e536711de [file] [log] [blame]
david_williamsbb0fc612006-05-19 10:28:20 +00001<project default="Build">
2
3 <property file="trigger.properties" />
4
5 <target name="Build">
6 <property name="buildTarget" value="all" />
7 <property name="removeBuildDir" value="true" />
8 <antcall target="startBuild">
9 </antcall>
10 </target>
11
12 <target name="Repeat">
13 <property name="buildTarget" value="all" />
14 <antcall target="startBuild">
15 </antcall>
16 </target>
17
18 <target name="Test">
19 <delete dir="${build.home}/test-${build.component}-${buildType}" failonerror="false" />
20 <property name="buildTarget" value="test" />
21 <antcall target="startBuild">
22 </antcall>
23 </target>
24
25 <target name="Publish">
26 <property name="buildTarget" value="justPublish" />
27 <antcall target="startBuild">
28 </antcall>
29 </target>
30
31 <target name="Push">
32 <property name="buildTarget" value="justPush" />
33 <antcall target="startBuild">
34 </antcall>
35 </target>
36
37 <target name="startBuild" depends="clean">
38 <antcall target="clean" />
39 <echo message="Component is: ${build.component}" />
40 <echo message="Build type is: ${buildType}" />
41 <echo message="Branch : ${mapVersionTag}" />
42 <echo message="Trial : ${build.trial}" />
43 <echo message="ftpRemoteDirectory : ${ftpRemoteDirectory}" />
44
45 <ant antfile="checkout.xml" target="all" dir="." inheritall="false">
46 <property name="codir" value="${build.home}/build-node/checkout/${build.component}-${buildType}" />
47 <property name="buildType" value="${buildType}" />
48 <property name="mapVersionTag" value="${mapVersionTag}" />
49 </ant>
50
51 <!-- TODO: this appears obsolete? And should be removed? -->
52 <ant antfile="cruise.xml" target="${buildTarget}" dir="${build.home}/build-node/checkout/${build.component}-${buildType}/releng.builder/scripts" inheritall="false">
53 <!-- PUBLISH TO eclipse.org -->
54
55 <property name="baseos" value="${baseos}" />
56 <property name="basews" value="${basews}" />
57 <property name="basearch" value="${basearch}" />
58 <property name="build.home" value="${build.home}" />
59 <property name="build.trial" value="${build.trial}" />
60 <property name="build.component" value="${build.component}" />
61
62 <property name="mapVersionTag" value="${mapVersionTag}" />
63 <property name="buildType" value="${buildType}" />
64 <property name="ftpUser" value="${ftpUser}" />
65 <property name="ftpPassword" value="${ftpPassword}" />
66 <property name="ftpServer" value="${ftpServer}" />
67 <property name="ftpRemoteDirectory" value="${ftpRemoteDirectory}" />
68
69 </ant>
70 </target>
71
72
73
74 <target name="Driver">
75 <ant antfile="checkout.xml" target="all" dir="." inheritall="false">
76 <property name="build.home" value="${build.home}" />
77 <property name="codir" value="${build.home}/build-node/checkout/wtp-driver" />
78 <property name="buildType" value="I" />
79 <property name="mapVersionTag" value="${mapVersionTag}" />
80 </ant>
81 <ant antfile="drivers.xml" target="all" dir="${build.home}/build-node/checkout/wtp-driver/releng.builder/tools/cruise" inheritall="false">
82 </ant>
83 </target>
84
85 <target name="docs">
86 <property name="build.component" value="docs" />
87 <property name="buildTarget" value="buildDoc" />
88 <antcall target="Build">
89 <param name="ftpRemoteDirectory" value="${ftpDocsRemoteDirectory}"/>
90 </antcall>
91 </target>
92
93
94 <target name="clean" if="removeBuildDir">
95 <delete dir="${build.home}/build-${build.component}-${buildType}" failonerror="false" />
96 <delete dir="${build.home}/test-${build.component}-${buildType}" failonerror="false" />
97 <delete dir="${build.home}/build-node/checkout/${build.component}-${buildType}/build/test-results" failonerror="false" />
98 <delete dir="${build.home}/workspace" failonerror="false" />
99 </target>
100
101</project>