blob: 12e537011329398f07e44b62c04534b0d380697f [file] [log] [blame]
david_williams7888d502007-06-29 06:26:51 +00001<project
2 name="checkout"
3 default="checkout"
4 basedir=".">
david_williamsbb0fc612006-05-19 10:28:20 +00005
david_williamsf9402cb2007-08-13 05:43:38 +00006 <!-- = = = standard properties pattern = = = -->
david_williamsa7f68be2007-06-20 02:17:13 +00007 <!--
8 Note to be cross-platform, "environment variables" are only appropriate for
9 some variables, e.g. ones we set, since properties are case sensitive, even if
10 the environment variables on your operating system are not, e.g. it will
david_williams42f9b242006-11-27 18:45:14 +000011 be ${env.Path} not ${env.PATH} on Windows -->
12 <property environment="env" />
david_williamsf9402cb2007-08-13 05:43:38 +000013
david_williamsa7f68be2007-06-20 02:17:13 +000014 <!--
15 Let users override standard properties, if desired.
16 If directory, file, or some properties do not exist,
17 then standard properties will be used.
david_williams7888d502007-06-29 06:26:51 +000018 -->
19 <property
20 file="${env.LOCAL_BUILD_PROPERTIES_DIR}/${ant.project.name}.properties" />
david_williamsbb0fc612006-05-19 10:28:20 +000021
david_williams42f9b242006-11-27 18:45:14 +000022 <!-- load standard properties for production environment -->
david_williams7888d502007-06-29 06:26:51 +000023 <property
24 file="${env.STANDARD_PROPERTIES_DIR}/${ant.project.name}.properties" />
david_williams42f9b242006-11-27 18:45:14 +000025 <!-- = = = end standard properties pattern = = = -->
26
david_williamsf64f0222006-11-28 21:37:13 +000027 <!-- if not otherwise set, the following are good default values -->
david_williams7888d502007-06-29 06:26:51 +000028 <property
29 name="checkout.wtpbuilder.clean"
30 value="true" />
31 <property
32 name="mapVersionTag"
33 value="HEAD" />
david_williamse997dab2006-11-29 03:52:45 +000034
david_williams7888d502007-06-29 06:26:51 +000035 <property
36 name="mapCvsRoot"
37 value=":${cvsProtocol}:${cvsUser}@${cvsServer}:${cvsRoot}" />
david_williams2f3f3c22007-02-17 23:56:37 +000038
david_williams7888d502007-06-29 06:26:51 +000039 <property
40 name="codir"
41 value="${env.BUILD_HOME}/build-node/checkout/${checkoutprojectname}" />
david_williamsbb0fc612006-05-19 10:28:20 +000042
43
44
david_williams7888d502007-06-29 06:26:51 +000045 <echo message="checkoutprojectname: ${checkoutprojectname}" />
46 <target
47 name="checkout"
48 if="checkoutprojectname">
david_williams42f9b242006-11-27 18:45:14 +000049 <!-- we always check and init the builder -->
50 <antcall target="getwtpbuilder" />
51 <!-- and projects can do more if needed. -->
52 <antcall target="${checkoutprojectname}" />
53 </target>
david_williamsbb0fc612006-05-19 10:28:20 +000054
david_williams7888d502007-06-29 06:26:51 +000055 <target name="wtp-R3.0-N">
david_williamsbb0fc612006-05-19 10:28:20 +000056
david_williamsa7f68be2007-06-20 02:17:13 +000057 <!--
david_williams7888d502007-06-29 06:26:51 +000058 do not need, since we do nightly builds "on demand" only
david_williams42f9b242006-11-27 18:45:14 +000059 <cvs quiet="true" cvsRoot="${mapCvsRoot}" package="${wst}" dest="${codir}" />
60 <cvs quiet="true" cvsRoot="${mapCvsRoot}" package="${jst}" dest="${codir}" />
61 -->
david_williamsbb0fc612006-05-19 10:28:20 +000062
david_williams42f9b242006-11-27 18:45:14 +000063 </target>
david_williams7888d502007-06-29 06:26:51 +000064 <target name="retest-wtp-R3.0-N">
65 <antcall target="wtp-R3.0-N" />
66 </target>
david_williamsbb0fc612006-05-19 10:28:20 +000067
david_williams7888d502007-06-29 06:26:51 +000068 <target name="wtp-R3.0-S">
69 <cvs
70 quiet="true"
71 cvsRoot="${mapCvsRoot}"
72 package="releng-jsf"
73 dest="${codir}"
74 tag="HEAD" />
75 <cvs
76 quiet="true"
77 cvsRoot="${mapCvsRoot}"
78 package="releng.dali"
79 dest="${codir}"
80 tag="HEAD" />
david_williams42f9b242006-11-27 18:45:14 +000081 </target>
david_williams7888d502007-06-29 06:26:51 +000082 <target name="retest-wtp-R3.0-S">
83 <antcall target="wtp-R3.0-S" />
david_williams42f9b242006-11-27 18:45:14 +000084 </target>
david_williams7888d502007-06-29 06:26:51 +000085
86 <target name="wtp-R3.0-I">
87 <cvs
88 quiet="true"
89 cvsRoot="${mapCvsRoot}"
90 package="releng-jsf"
91 dest="${codir}"
92 tag="HEAD" />
93 <cvs
94 quiet="true"
95 cvsRoot="${mapCvsRoot}"
96 package="releng.dali"
97 dest="${codir}"
98 tag="HEAD" />
david_williams42f9b242006-11-27 18:45:14 +000099 </target>
david_williams7888d502007-06-29 06:26:51 +0000100 <target name="retest-wtp-R3.0-I">
101 <antcall target="wtp-R3.0-I" />
102 </target>
103
104 <target name="wtp-R3.0-R">
105 <cvs
106 quiet="true"
107 cvsRoot="${mapCvsRoot}"
108 package="releng-jsf"
109 dest="${codir}"
110 tag="HEAD" />
111 <cvs
112 quiet="true"
113 cvsRoot="${mapCvsRoot}"
114 package="releng.dali"
115 dest="${codir}"
116 tag="HEAD" />
117 </target>
118 <target name="retest-wtp-R3.0-R">
119 <antcall target="wtp-R3.0-R" />
david_williamsa7f68be2007-06-20 02:17:13 +0000120 </target>
121
david_williams42f9b242006-11-27 18:45:14 +0000122
123 <target name="wtp-R1.5-M">
david_williams7888d502007-06-29 06:26:51 +0000124 <cvs
125 quiet="true"
126 cvsRoot="${mapCvsRoot}"
127 package="${releng}"
128 dest="${codir}"
129 tag="R1_5_maintenance" />
david_williams42f9b242006-11-27 18:45:14 +0000130 </target>
david_williams7888d502007-06-29 06:26:51 +0000131 <target name="retest-wtp-R1.5-M">
132 <antcall target="wtp-R1.5-M" />
133 </target>
134 <target name="wtp-R2.0-M">
135 <cvs
136 quiet="true"
137 cvsRoot="${mapCvsRoot}"
138 package="${releng}"
139 dest="${codir}"
140 tag="R2_0_maintenance" />
141 <cvs
142 quiet="true"
143 cvsRoot="${mapCvsRoot}"
144 package="releng.dali"
145 dest="${codir}"
146 tag="R1_0_maintenance" />
147 <cvs
148 quiet="true"
149 cvsRoot="${mapCvsRoot}"
150 package="releng-jsf"
151 dest="${codir}"
152 tag="R1_0_maintenance" />
153 </target>
154
155 <target name="retest-wtp-R2.0-M">
156 <antcall target="wtp-R2.0-M" />
157 </target>
158
david_williamsc249d492007-04-14 04:11:39 +0000159 <target name="jem-R1.5-M">
david_williams7888d502007-06-29 06:26:51 +0000160 <cvs
161 quiet="true"
162 cvsRoot="${mapCvsRoot}"
163 package="${releng}"
164 dest="${codir}"
165 tag="R1_5_maintenance" />
david_williamsc249d492007-04-14 04:11:39 +0000166 </target>
david_williams0ef9b0c2006-12-04 23:46:40 +0000167 <target name="patches-R1.5-P">
david_williams7888d502007-06-29 06:26:51 +0000168 <cvs
169 quiet="true"
170 cvsRoot="${mapCvsRoot}"
171 package="${releng}"
172 dest="${codir}"
173 tag="R1_5_maintenance_patches" />
david_williams42f9b242006-11-27 18:45:14 +0000174 </target>
175
david_williams7888d502007-06-29 06:26:51 +0000176 <target name="wtp-buildTools-R3.0-T">
177 <cvs
178 quiet="true"
179 cvsRoot="${mapCvsRoot}"
180 package="releng"
181 dest="${codir}"
182 tag="HEAD" />
david_williamse3efab52007-02-26 04:09:53 +0000183 </target>
david_williamsbb0fc612006-05-19 10:28:20 +0000184
david_williamsa7f68be2007-06-20 02:17:13 +0000185
david_williamsa7f68be2007-06-20 02:17:13 +0000186
187 <!--
david_williams42f9b242006-11-27 18:45:14 +0000188 The order of execution of these three worker targets
david_williamsa7f68be2007-06-20 02:17:13 +0000189 is critical, check.clean, initBuilders, and
david_williams42f9b242006-11-27 18:45:14 +0000190 then getwtpbuilder.
191 -->
david_williams7888d502007-06-29 06:26:51 +0000192 <target
193 name="getwtpbuilder"
194 depends="check.clean,initBuilders"
195 if="doClean">
david_williamsa7f68be2007-06-20 02:17:13 +0000196 <!-- This is a special property file, that contains (only) the
david_williams7888d502007-06-29 06:26:51 +0000197 value of wtpBuilderVersion. Then, that version of the builder
198 is fetched to control the rest of the build -->
david_williams42f9b242006-11-27 18:45:14 +0000199 <property file="${codir}/${releng}/maps/build.cfg" />
david_williams7888d502007-06-29 06:26:51 +0000200 <delete
201 dir="${codir}/releng.wtpbuilder"
202 failonerror="false" />
203 <echo
204 message="Version tag for ${releng.wtpbuilder} is: ${wtpBuilderVersion}" />
205 <cvs
206 quiet="true"
207 cvsRoot="${mapCvsRoot}"
208 package="${releng.wtpbuilder}"
209 dest="${codir}"
210 tag="${wtpBuilderVersion}" />
david_williams42f9b242006-11-27 18:45:14 +0000211 </target>
david_williamsbb0fc612006-05-19 10:28:20 +0000212
david_williams42f9b242006-11-27 18:45:14 +0000213 <target name="check.clean">
david_williams7888d502007-06-29 06:26:51 +0000214 <echo
215 message="checkout.wtpbuilder.clean: ${checkout.wtpbuilder.clean}" />
david_williams42f9b242006-11-27 18:45:14 +0000216 <condition property="doClean">
david_williams7888d502007-06-29 06:26:51 +0000217 <equals
218 arg1="${checkout.wtpbuilder.clean}"
219 arg2="true"
220 trim="true"
221 casesensitive="false" />
david_williams42f9b242006-11-27 18:45:14 +0000222 </condition>
223 </target>
david_williamsbb0fc612006-05-19 10:28:20 +0000224
david_williams7888d502007-06-29 06:26:51 +0000225 <target
226 name="initBuilders"
227 depends="check.clean"
228 if="doClean">
david_williams42f9b242006-11-27 18:45:14 +0000229 <echo message="Version tag for ${releng}: ${mapVersionTag}" />
david_williams7888d502007-06-29 06:26:51 +0000230 <cvs
231 quiet="true"
232 cvsRoot="${mapCvsRoot}"
233 package="${releng}"
234 dest="${codir}"
235 tag="${mapVersionTag}" />
david_williams42f9b242006-11-27 18:45:14 +0000236 </target>
david_williamsbb0fc612006-05-19 10:28:20 +0000237
238
239</project>
240