blob: cb5a8338079b91dd1e4f90441115694d7a874c2d [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 -->
david_williams39c5f652008-01-02 07:08:39 +000012 <property
13 environment="env" />
david_williams13d378c2007-08-22 04:04:54 +000014
david_williamsa7f68be2007-06-20 02:17:13 +000015 <!--
16 Let users override standard properties, if desired.
17 If directory, file, or some properties do not exist,
18 then standard properties will be used.
david_williams7888d502007-06-29 06:26:51 +000019 -->
20 <property
21 file="${env.LOCAL_BUILD_PROPERTIES_DIR}/${ant.project.name}.properties" />
david_williamsbb0fc612006-05-19 10:28:20 +000022
david_williams42f9b242006-11-27 18:45:14 +000023 <!-- = = = end standard properties pattern = = = -->
24
david_williamsf64f0222006-11-28 21:37:13 +000025 <!-- if not otherwise set, the following are good default values -->
david_williams7888d502007-06-29 06:26:51 +000026 <property
david_williamseceb39b2008-01-02 04:21:44 +000027 name="checkout.builder.clean"
david_williams7888d502007-06-29 06:26:51 +000028 value="true" />
29 <property
30 name="mapVersionTag"
31 value="HEAD" />
david_williams842e4192007-12-09 07:44:35 +000032 <property
33 name="cvsProtocol"
david_williams2e0afe02008-01-02 04:11:40 +000034 value="${env.BUILD_CVS_WRITE_PROTOCOL}" />
david_williams842e4192007-12-09 07:44:35 +000035 <property
36 name="cvsUser"
david_williams2e0afe02008-01-02 04:11:40 +000037 value="${env.BUILD_CVS_WRITE_USER}" />
david_williams842e4192007-12-09 07:44:35 +000038 <property
39 name="cvsServer"
david_williams2e0afe02008-01-02 04:11:40 +000040 value="${env.BUILD_CVS_SERVER}" />
david_williams842e4192007-12-09 07:44:35 +000041 <property
42 name="cvsRoot"
david_williams2e0afe02008-01-02 04:11:40 +000043 value="${env.BUILD_CVS_ROOT}" />
david_williams842e4192007-12-09 07:44:35 +000044
45 <!-- end required defaults-if-not-set -->
46
47
48
49 <!-- standard computed properties. Should not have to be changed. -->
david_williams7888d502007-06-29 06:26:51 +000050 <property
51 name="mapCvsRoot"
52 value=":${cvsProtocol}:${cvsUser}@${cvsServer}:${cvsRoot}" />
david_williams7888d502007-06-29 06:26:51 +000053 <property
54 name="codir"
david_williamsf7354602008-01-08 04:28:04 +000055 value="${env.PROJECT_BUILDERS}/${projectname}" />
david_williams39c5f652008-01-02 07:08:39 +000056 <echo
david_williamsf7354602008-01-08 04:28:04 +000057 message="projectname: ${projectname}" />
david_williams7888d502007-06-29 06:26:51 +000058 <target
59 name="checkout"
david_williamsf7354602008-01-08 04:28:04 +000060 if="projectname">
david_williams42f9b242006-11-27 18:45:14 +000061 <!-- we always check and init the builder -->
david_williams39c5f652008-01-02 07:08:39 +000062 <antcall
63 target="getbuilder" />
64 <!-- and distribution projects can do more if needed. -->
65 <antcall
david_williamsf7354602008-01-08 04:28:04 +000066 target="${projectname}" />
david_williams42f9b242006-11-27 18:45:14 +000067 </target>
david_williams39c5f652008-01-02 07:08:39 +000068 <target
69 name="wtp-R3.0-N">
david_williams42f9b242006-11-27 18:45:14 +000070 </target>
david_williams39c5f652008-01-02 07:08:39 +000071 <target
72 name="retest-wtp-R3.0-N">
73 <antcall
74 target="wtp-R3.0-N" />
david_williams7888d502007-06-29 06:26:51 +000075 </target>
david_williams39c5f652008-01-02 07:08:39 +000076 <target
77 name="wtp-R3.0-S">
david_williams7888d502007-06-29 06:26:51 +000078 <cvs
david_williams13d378c2007-08-22 04:04:54 +000079 quiet="${env.CVS_QUIET}"
80 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +000081 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +000082 package="${env.RELENGJSF}"
david_williams7888d502007-06-29 06:26:51 +000083 dest="${codir}"
84 tag="HEAD" />
85 <cvs
david_williams13d378c2007-08-22 04:04:54 +000086 quiet="${env.CVS_QUIET}"
87 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +000088 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +000089 package="${env.RELENGDALI}"
david_williams7888d502007-06-29 06:26:51 +000090 dest="${codir}"
91 tag="HEAD" />
david_williams42f9b242006-11-27 18:45:14 +000092 </target>
david_williams39c5f652008-01-02 07:08:39 +000093 <target
94 name="retest-wtp-R3.0-S">
95 <antcall
96 target="wtp-R3.0-S" />
david_williams42f9b242006-11-27 18:45:14 +000097 </target>
david_williams39c5f652008-01-02 07:08:39 +000098 <target
99 name="wtp-R3.0-I">
david_williams7888d502007-06-29 06:26:51 +0000100 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000101 quiet="${env.CVS_QUIET}"
102 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000103 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000104 package="${env.RELENGJSF}"
david_williams7888d502007-06-29 06:26:51 +0000105 dest="${codir}"
106 tag="HEAD" />
107 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000108 quiet="${env.CVS_QUIET}"
109 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000110 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000111 package="${env.RELENGDALI}"
david_williams7888d502007-06-29 06:26:51 +0000112 dest="${codir}"
113 tag="HEAD" />
david_williams42f9b242006-11-27 18:45:14 +0000114 </target>
david_williams39c5f652008-01-02 07:08:39 +0000115 <target
116 name="retest-wtp-R3.0-I">
117 <antcall
118 target="wtp-R3.0-I" />
david_williams7888d502007-06-29 06:26:51 +0000119 </target>
david_williams39c5f652008-01-02 07:08:39 +0000120 <target
121 name="wtp-R3.0-R">
david_williams7888d502007-06-29 06:26:51 +0000122 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000123 quiet="${env.CVS_QUIET}"
124 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000125 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000126 package="${env.RELENGJSF}"
david_williams7888d502007-06-29 06:26:51 +0000127 dest="${codir}"
128 tag="HEAD" />
129 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000130 quiet="${env.CVS_QUIET}"
131 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000132 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000133 package="${env.RELENGDALI}"
david_williams7888d502007-06-29 06:26:51 +0000134 dest="${codir}"
135 tag="HEAD" />
136 </target>
david_williams39c5f652008-01-02 07:08:39 +0000137 <target
138 name="retest-wtp-R3.0-R">
139 <antcall
140 target="wtp-R3.0-R" />
david_williamsa7f68be2007-06-20 02:17:13 +0000141 </target>
david_williams39c5f652008-01-02 07:08:39 +0000142 <target
143 name="wtp-R1.5-M">
david_williams7888d502007-06-29 06:26:51 +0000144 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000145 quiet="${env.CVS_QUIET}"
146 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000147 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000148 package="${env.RELENG}"
david_williams7888d502007-06-29 06:26:51 +0000149 dest="${codir}"
150 tag="R1_5_maintenance" />
david_williams842e4192007-12-09 07:44:35 +0000151 <cvs
152 quiet="${env.CVS_QUIET}"
153 reallyquiet="${env.CVS_REALLY_QUIET}"
154 cvsRoot="${mapCvsRoot}"
155 package="${env.RELENGMAPS}"
156 dest="${codir}"
157 tag="R1_5_maintenance" />
david_williams42f9b242006-11-27 18:45:14 +0000158 </target>
david_williams39c5f652008-01-02 07:08:39 +0000159 <target
160 name="retest-wtp-R1.5-M">
161 <antcall
162 target="wtp-R1.5-M" />
david_williams7888d502007-06-29 06:26:51 +0000163 </target>
david_williams39c5f652008-01-02 07:08:39 +0000164 <target
165 name="wtp-R2.0-M">
david_williams7888d502007-06-29 06:26:51 +0000166 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000167 quiet="${env.CVS_QUIET}"
168 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000169 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000170 package="${env.RELENG}"
david_williams7888d502007-06-29 06:26:51 +0000171 dest="${codir}"
172 tag="R2_0_maintenance" />
david_williams842e4192007-12-09 07:44:35 +0000173 <cvs
174 quiet="${env.CVS_QUIET}"
175 reallyquiet="${env.CVS_REALLY_QUIET}"
176 cvsRoot="${mapCvsRoot}"
177 package="${env.RELENGMAPS}"
178 dest="${codir}"
179 tag="R2_0_maintenance" />
david_williams7888d502007-06-29 06:26:51 +0000180 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000181 quiet="${env.CVS_QUIET}"
182 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000183 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000184 package="${env.RELENGDALI}"
david_williams7888d502007-06-29 06:26:51 +0000185 dest="${codir}"
186 tag="R1_0_maintenance" />
187 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000188 quiet="${env.CVS_QUIET}"
189 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000190 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000191 package="${env.RELENGJSF}"
david_williams7888d502007-06-29 06:26:51 +0000192 dest="${codir}"
193 tag="R1_0_maintenance" />
194 </target>
david_williams39c5f652008-01-02 07:08:39 +0000195 <target
196 name="wtp-R2.0-R">
david_williams82723492007-09-25 13:52:23 +0000197 <cvs
198 quiet="${env.CVS_QUIET}"
199 reallyquiet="${env.CVS_REALLY_QUIET}"
200 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000201 package="${env.RELENG}"
david_williams82723492007-09-25 13:52:23 +0000202 dest="${codir}"
203 tag="R2_0_maintenance" />
david_williams842e4192007-12-09 07:44:35 +0000204 <cvs
205 quiet="${env.CVS_QUIET}"
206 reallyquiet="${env.CVS_REALLY_QUIET}"
207 cvsRoot="${mapCvsRoot}"
208 package="${env.RELENGMAPS}"
209 dest="${codir}"
210 tag="R2_0_maintenance" />
david_williams82723492007-09-25 13:52:23 +0000211 <cvs
212 quiet="${env.CVS_QUIET}"
213 reallyquiet="${env.CVS_REALLY_QUIET}"
214 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000215 package="${env.RELENGDALI}"
david_williams82723492007-09-25 13:52:23 +0000216 dest="${codir}"
217 tag="R1_0_maintenance" />
218 <cvs
219 quiet="${env.CVS_QUIET}"
220 reallyquiet="${env.CVS_REALLY_QUIET}"
221 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000222 package="${env.RELENGJSF}"
david_williams82723492007-09-25 13:52:23 +0000223 dest="${codir}"
224 tag="R1_0_maintenance" />
225 </target>
david_williams39c5f652008-01-02 07:08:39 +0000226 <target
227 name="retest-wtp-R2.0-M">
228 <antcall
229 target="wtp-R2.0-M" />
david_williams7888d502007-06-29 06:26:51 +0000230 </target>
david_williams39c5f652008-01-02 07:08:39 +0000231 <target
232 name="jem-R1.5-M">
david_williams7888d502007-06-29 06:26:51 +0000233 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000234 quiet="${env.CVS_QUIET}"
235 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000236 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000237 package="${env.RELENG}"
david_williams7888d502007-06-29 06:26:51 +0000238 dest="${codir}"
239 tag="R1_5_maintenance" />
david_williams842e4192007-12-09 07:44:35 +0000240 <cvs
241 quiet="${env.CVS_QUIET}"
242 reallyquiet="${env.CVS_REALLY_QUIET}"
243 cvsRoot="${mapCvsRoot}"
244 package="${env.RELENGMAPS}"
245 dest="${codir}"
246 tag="R1_5_maintenance" />
david_williamsc249d492007-04-14 04:11:39 +0000247 </target>
david_williams39c5f652008-01-02 07:08:39 +0000248 <target
249 name="patches-R1.5-P">
david_williams7888d502007-06-29 06:26:51 +0000250 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000251 quiet="${env.CVS_QUIET}"
252 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000253 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000254 package="${env.RELENG}"
david_williams7888d502007-06-29 06:26:51 +0000255 dest="${codir}"
david_williams32752682007-11-19 01:14:28 +0000256 tag="R1_5_5_patches" />
david_williams842e4192007-12-09 07:44:35 +0000257 <cvs
258 quiet="${env.CVS_QUIET}"
259 reallyquiet="${env.CVS_REALLY_QUIET}"
260 cvsRoot="${mapCvsRoot}"
261 package="${env.RELENGMAPS}"
262 dest="${codir}"
263 tag="R1_5_5_patches" />
david_williams42f9b242006-11-27 18:45:14 +0000264 </target>
david_williams39c5f652008-01-02 07:08:39 +0000265 <target
266 name="wtp-buildTools-R3.0-T">
david_williams7888d502007-06-29 06:26:51 +0000267 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000268 quiet="${env.CVS_QUIET}"
269 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000270 cvsRoot="${mapCvsRoot}"
david_williams858ea582007-11-19 01:01:27 +0000271 package="${env.RELENG}"
david_williams7888d502007-06-29 06:26:51 +0000272 dest="${codir}"
273 tag="HEAD" />
david_williamse3efab52007-02-26 04:09:53 +0000274 </target>
david_williams8f18f0b2008-01-08 04:32:22 +0000275 <target
276 name="incubator-R1.0-I">
277 <cvs
278 quiet="${env.CVS_QUIET}"
279 reallyquiet="${env.CVS_REALLY_QUIET}"
280 cvsRoot="${mapCvsRoot}"
281 package="${env.RELENG}"
282 dest="${codir}"
283 tag="HEAD" />
284 </target>
david_williamsa7f68be2007-06-20 02:17:13 +0000285
david_williamsa7f68be2007-06-20 02:17:13 +0000286
287 <!--
david_williams42f9b242006-11-27 18:45:14 +0000288 The order of execution of these three worker targets
david_williamsa7f68be2007-06-20 02:17:13 +0000289 is critical, check.clean, initBuilders, and
david_williams39c5f652008-01-02 07:08:39 +0000290 then getbuilder.
david_williams42f9b242006-11-27 18:45:14 +0000291 -->
david_williams7888d502007-06-29 06:26:51 +0000292 <target
david_williams39c5f652008-01-02 07:08:39 +0000293 name="getbuilder"
david_williams7888d502007-06-29 06:26:51 +0000294 depends="check.clean,initBuilders"
295 if="doClean">
david_williamsa7f68be2007-06-20 02:17:13 +0000296 <!-- This is a special property file, that contains (only) the
david_williams39c5f652008-01-02 07:08:39 +0000297 value of builderVersion. Then, that version of the builder
david_williams7888d502007-06-29 06:26:51 +0000298 is fetched to control the rest of the build -->
david_williams39c5f652008-01-02 07:08:39 +0000299 <property
300 file="${codir}/${env.RELENG}/maps/build.cfg" />
david_williamsa129dc22008-01-02 07:39:51 +0000301 <fail unless="builderVersion" message="Could not get builderVersion. Probably could not checkout build.cfg" />
david_williams7888d502007-06-29 06:26:51 +0000302 <delete
david_williams2e0afe02008-01-02 04:11:40 +0000303 dir="${codir}/${env.RELENG_BUILDER}"
david_williams7888d502007-06-29 06:26:51 +0000304 failonerror="false" />
305 <echo
david_williams39c5f652008-01-02 07:08:39 +0000306 message="Version tag for ${env.RELENG_BUILDER} is: ${builderVersion}" />
david_williams7888d502007-06-29 06:26:51 +0000307 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000308 quiet="${env.CVS_QUIET}"
309 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000310 cvsRoot="${mapCvsRoot}"
david_williams2e0afe02008-01-02 04:11:40 +0000311 package="${env.RELENG_BUILDER}"
david_williams7888d502007-06-29 06:26:51 +0000312 dest="${codir}"
david_williams39c5f652008-01-02 07:08:39 +0000313 tag="${builderVersion}" />
david_williams42f9b242006-11-27 18:45:14 +0000314 </target>
david_williams39c5f652008-01-02 07:08:39 +0000315 <target
316 name="check.clean">
david_williams7888d502007-06-29 06:26:51 +0000317 <echo
david_williamseceb39b2008-01-02 04:21:44 +0000318 message="checkout.builder.clean: ${checkout.builder.clean}" />
david_williams39c5f652008-01-02 07:08:39 +0000319 <condition
320 property="doClean">
david_williams7888d502007-06-29 06:26:51 +0000321 <equals
david_williamseceb39b2008-01-02 04:21:44 +0000322 arg1="${checkout.builder.clean}"
david_williams7888d502007-06-29 06:26:51 +0000323 arg2="true"
324 trim="true"
325 casesensitive="false" />
david_williams42f9b242006-11-27 18:45:14 +0000326 </condition>
327 </target>
david_williams7888d502007-06-29 06:26:51 +0000328 <target
329 name="initBuilders"
330 depends="check.clean"
331 if="doClean">
david_williams39c5f652008-01-02 07:08:39 +0000332 <echo
333 message="Version tag for ${env.RELENG}: ${mapVersionTag}" />
david_williams7888d502007-06-29 06:26:51 +0000334 <cvs
335 quiet="true"
336 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000337 package="${env.RELENG}"
david_williams7888d502007-06-29 06:26:51 +0000338 dest="${codir}"
339 tag="${mapVersionTag}" />
david_williams42f9b242006-11-27 18:45:14 +0000340 </target>
david_williams39c5f652008-01-02 07:08:39 +0000341</project>