blob: be9dab6a3ce893d8ddff86c5fd7f9d7d74b2b09c [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_williams4432d732008-01-08 04:47:04 +000071
david_williams39c5f652008-01-02 07:08:39 +000072 <target
73 name="wtp-R3.0-S">
david_williams7888d502007-06-29 06:26:51 +000074 <cvs
david_williams13d378c2007-08-22 04:04:54 +000075 quiet="${env.CVS_QUIET}"
76 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +000077 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +000078 package="${env.RELENGJSF}"
david_williams7888d502007-06-29 06:26:51 +000079 dest="${codir}"
80 tag="HEAD" />
81 <cvs
david_williams13d378c2007-08-22 04:04:54 +000082 quiet="${env.CVS_QUIET}"
83 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +000084 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +000085 package="${env.RELENGDALI}"
david_williams7888d502007-06-29 06:26:51 +000086 dest="${codir}"
87 tag="HEAD" />
david_williams42f9b242006-11-27 18:45:14 +000088 </target>
david_williams39c5f652008-01-02 07:08:39 +000089 <target
90 name="retest-wtp-R3.0-S">
91 <antcall
92 target="wtp-R3.0-S" />
david_williams42f9b242006-11-27 18:45:14 +000093 </target>
david_williams39c5f652008-01-02 07:08:39 +000094 <target
95 name="wtp-R3.0-I">
david_williams7888d502007-06-29 06:26:51 +000096 <cvs
david_williams13d378c2007-08-22 04:04:54 +000097 quiet="${env.CVS_QUIET}"
98 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +000099 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000100 package="${env.RELENGJSF}"
david_williams7888d502007-06-29 06:26:51 +0000101 dest="${codir}"
102 tag="HEAD" />
103 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000104 quiet="${env.CVS_QUIET}"
105 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000106 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000107 package="${env.RELENGDALI}"
david_williams7888d502007-06-29 06:26:51 +0000108 dest="${codir}"
109 tag="HEAD" />
david_williams42f9b242006-11-27 18:45:14 +0000110 </target>
david_williams39c5f652008-01-02 07:08:39 +0000111 <target
112 name="retest-wtp-R3.0-I">
113 <antcall
114 target="wtp-R3.0-I" />
david_williams7888d502007-06-29 06:26:51 +0000115 </target>
david_williams39c5f652008-01-02 07:08:39 +0000116 <target
117 name="wtp-R3.0-R">
david_williams7888d502007-06-29 06:26:51 +0000118 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000119 quiet="${env.CVS_QUIET}"
120 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000121 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000122 package="${env.RELENGJSF}"
david_williams7888d502007-06-29 06:26:51 +0000123 dest="${codir}"
124 tag="HEAD" />
125 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000126 quiet="${env.CVS_QUIET}"
127 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000128 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000129 package="${env.RELENGDALI}"
david_williams7888d502007-06-29 06:26:51 +0000130 dest="${codir}"
131 tag="HEAD" />
132 </target>
david_williams39c5f652008-01-02 07:08:39 +0000133 <target
134 name="retest-wtp-R3.0-R">
135 <antcall
136 target="wtp-R3.0-R" />
david_williamsa7f68be2007-06-20 02:17:13 +0000137 </target>
david_williams39c5f652008-01-02 07:08:39 +0000138 <target
139 name="wtp-R1.5-M">
david_williams7888d502007-06-29 06:26:51 +0000140 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000141 quiet="${env.CVS_QUIET}"
142 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000143 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000144 package="${env.RELENG}"
david_williams7888d502007-06-29 06:26:51 +0000145 dest="${codir}"
146 tag="R1_5_maintenance" />
david_williams842e4192007-12-09 07:44:35 +0000147 <cvs
148 quiet="${env.CVS_QUIET}"
149 reallyquiet="${env.CVS_REALLY_QUIET}"
150 cvsRoot="${mapCvsRoot}"
151 package="${env.RELENGMAPS}"
152 dest="${codir}"
153 tag="R1_5_maintenance" />
david_williams42f9b242006-11-27 18:45:14 +0000154 </target>
david_williams39c5f652008-01-02 07:08:39 +0000155 <target
156 name="retest-wtp-R1.5-M">
157 <antcall
158 target="wtp-R1.5-M" />
david_williams7888d502007-06-29 06:26:51 +0000159 </target>
david_williams39c5f652008-01-02 07:08:39 +0000160 <target
161 name="wtp-R2.0-M">
david_williams7888d502007-06-29 06:26:51 +0000162 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000163 quiet="${env.CVS_QUIET}"
164 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000165 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000166 package="${env.RELENG}"
david_williams7888d502007-06-29 06:26:51 +0000167 dest="${codir}"
168 tag="R2_0_maintenance" />
david_williams842e4192007-12-09 07:44:35 +0000169 <cvs
170 quiet="${env.CVS_QUIET}"
171 reallyquiet="${env.CVS_REALLY_QUIET}"
172 cvsRoot="${mapCvsRoot}"
173 package="${env.RELENGMAPS}"
174 dest="${codir}"
175 tag="R2_0_maintenance" />
david_williams7888d502007-06-29 06:26:51 +0000176 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000177 quiet="${env.CVS_QUIET}"
178 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000179 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000180 package="${env.RELENGDALI}"
david_williams7888d502007-06-29 06:26:51 +0000181 dest="${codir}"
182 tag="R1_0_maintenance" />
183 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000184 quiet="${env.CVS_QUIET}"
185 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000186 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000187 package="${env.RELENGJSF}"
david_williams7888d502007-06-29 06:26:51 +0000188 dest="${codir}"
189 tag="R1_0_maintenance" />
190 </target>
david_williams39c5f652008-01-02 07:08:39 +0000191 <target
192 name="wtp-R2.0-R">
david_williams82723492007-09-25 13:52:23 +0000193 <cvs
194 quiet="${env.CVS_QUIET}"
195 reallyquiet="${env.CVS_REALLY_QUIET}"
196 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000197 package="${env.RELENG}"
david_williams82723492007-09-25 13:52:23 +0000198 dest="${codir}"
199 tag="R2_0_maintenance" />
david_williams842e4192007-12-09 07:44:35 +0000200 <cvs
201 quiet="${env.CVS_QUIET}"
202 reallyquiet="${env.CVS_REALLY_QUIET}"
203 cvsRoot="${mapCvsRoot}"
204 package="${env.RELENGMAPS}"
205 dest="${codir}"
206 tag="R2_0_maintenance" />
david_williams82723492007-09-25 13:52:23 +0000207 <cvs
208 quiet="${env.CVS_QUIET}"
209 reallyquiet="${env.CVS_REALLY_QUIET}"
210 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000211 package="${env.RELENGDALI}"
david_williams82723492007-09-25 13:52:23 +0000212 dest="${codir}"
213 tag="R1_0_maintenance" />
214 <cvs
215 quiet="${env.CVS_QUIET}"
216 reallyquiet="${env.CVS_REALLY_QUIET}"
217 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000218 package="${env.RELENGJSF}"
david_williams82723492007-09-25 13:52:23 +0000219 dest="${codir}"
220 tag="R1_0_maintenance" />
221 </target>
david_williams39c5f652008-01-02 07:08:39 +0000222 <target
223 name="retest-wtp-R2.0-M">
224 <antcall
225 target="wtp-R2.0-M" />
david_williams7888d502007-06-29 06:26:51 +0000226 </target>
david_williams39c5f652008-01-02 07:08:39 +0000227 <target
228 name="jem-R1.5-M">
david_williams7888d502007-06-29 06:26:51 +0000229 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000230 quiet="${env.CVS_QUIET}"
231 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000232 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000233 package="${env.RELENG}"
david_williams7888d502007-06-29 06:26:51 +0000234 dest="${codir}"
235 tag="R1_5_maintenance" />
david_williams842e4192007-12-09 07:44:35 +0000236 <cvs
237 quiet="${env.CVS_QUIET}"
238 reallyquiet="${env.CVS_REALLY_QUIET}"
239 cvsRoot="${mapCvsRoot}"
240 package="${env.RELENGMAPS}"
241 dest="${codir}"
242 tag="R1_5_maintenance" />
david_williamsc249d492007-04-14 04:11:39 +0000243 </target>
david_williams39c5f652008-01-02 07:08:39 +0000244 <target
245 name="patches-R1.5-P">
david_williams7888d502007-06-29 06:26:51 +0000246 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000247 quiet="${env.CVS_QUIET}"
248 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000249 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000250 package="${env.RELENG}"
david_williams7888d502007-06-29 06:26:51 +0000251 dest="${codir}"
david_williams32752682007-11-19 01:14:28 +0000252 tag="R1_5_5_patches" />
david_williams842e4192007-12-09 07:44:35 +0000253 <cvs
254 quiet="${env.CVS_QUIET}"
255 reallyquiet="${env.CVS_REALLY_QUIET}"
256 cvsRoot="${mapCvsRoot}"
257 package="${env.RELENGMAPS}"
258 dest="${codir}"
259 tag="R1_5_5_patches" />
david_williams42f9b242006-11-27 18:45:14 +0000260 </target>
david_williams39c5f652008-01-02 07:08:39 +0000261 <target
262 name="wtp-buildTools-R3.0-T">
david_williams7888d502007-06-29 06:26:51 +0000263 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000264 quiet="${env.CVS_QUIET}"
265 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000266 cvsRoot="${mapCvsRoot}"
david_williams858ea582007-11-19 01:01:27 +0000267 package="${env.RELENG}"
david_williams7888d502007-06-29 06:26:51 +0000268 dest="${codir}"
269 tag="HEAD" />
david_williamse3efab52007-02-26 04:09:53 +0000270 </target>
david_williams8f18f0b2008-01-08 04:32:22 +0000271 <target
david_williams8424c212008-01-08 06:25:18 +0000272 name="incubator-R0.5-I">
david_williams8f18f0b2008-01-08 04:32:22 +0000273 <cvs
274 quiet="${env.CVS_QUIET}"
275 reallyquiet="${env.CVS_REALLY_QUIET}"
276 cvsRoot="${mapCvsRoot}"
277 package="${env.RELENG}"
278 dest="${codir}"
279 tag="HEAD" />
david_williams4432d732008-01-08 04:47:04 +0000280 <cvs
281 quiet="${env.CVS_QUIET}"
282 reallyquiet="${env.CVS_REALLY_QUIET}"
283 cvsRoot="${mapCvsRoot}"
284 package="${env.RELENGMAPS}"
285 dest="${codir}"
286 tag="HEAD" />
david_williams8f18f0b2008-01-08 04:32:22 +0000287 </target>
david_williamsa7f68be2007-06-20 02:17:13 +0000288
david_williamsa7f68be2007-06-20 02:17:13 +0000289
290 <!--
david_williams42f9b242006-11-27 18:45:14 +0000291 The order of execution of these three worker targets
david_williamsa7f68be2007-06-20 02:17:13 +0000292 is critical, check.clean, initBuilders, and
david_williams39c5f652008-01-02 07:08:39 +0000293 then getbuilder.
david_williams42f9b242006-11-27 18:45:14 +0000294 -->
david_williams7888d502007-06-29 06:26:51 +0000295 <target
david_williams39c5f652008-01-02 07:08:39 +0000296 name="getbuilder"
david_williams7888d502007-06-29 06:26:51 +0000297 depends="check.clean,initBuilders"
298 if="doClean">
david_williamsa7f68be2007-06-20 02:17:13 +0000299 <!-- This is a special property file, that contains (only) the
david_williams39c5f652008-01-02 07:08:39 +0000300 value of builderVersion. Then, that version of the builder
david_williams7888d502007-06-29 06:26:51 +0000301 is fetched to control the rest of the build -->
david_williams39c5f652008-01-02 07:08:39 +0000302 <property
303 file="${codir}/${env.RELENG}/maps/build.cfg" />
david_williamsa129dc22008-01-02 07:39:51 +0000304 <fail unless="builderVersion" message="Could not get builderVersion. Probably could not checkout build.cfg" />
david_williams7888d502007-06-29 06:26:51 +0000305 <delete
david_williams2e0afe02008-01-02 04:11:40 +0000306 dir="${codir}/${env.RELENG_BUILDER}"
david_williams7888d502007-06-29 06:26:51 +0000307 failonerror="false" />
308 <echo
david_williams39c5f652008-01-02 07:08:39 +0000309 message="Version tag for ${env.RELENG_BUILDER} is: ${builderVersion}" />
david_williams7888d502007-06-29 06:26:51 +0000310 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000311 quiet="${env.CVS_QUIET}"
312 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000313 cvsRoot="${mapCvsRoot}"
david_williams2e0afe02008-01-02 04:11:40 +0000314 package="${env.RELENG_BUILDER}"
david_williams7888d502007-06-29 06:26:51 +0000315 dest="${codir}"
david_williams39c5f652008-01-02 07:08:39 +0000316 tag="${builderVersion}" />
david_williams42f9b242006-11-27 18:45:14 +0000317 </target>
david_williams39c5f652008-01-02 07:08:39 +0000318 <target
319 name="check.clean">
david_williams7888d502007-06-29 06:26:51 +0000320 <echo
david_williamseceb39b2008-01-02 04:21:44 +0000321 message="checkout.builder.clean: ${checkout.builder.clean}" />
david_williams39c5f652008-01-02 07:08:39 +0000322 <condition
323 property="doClean">
david_williams7888d502007-06-29 06:26:51 +0000324 <equals
david_williamseceb39b2008-01-02 04:21:44 +0000325 arg1="${checkout.builder.clean}"
david_williams7888d502007-06-29 06:26:51 +0000326 arg2="true"
327 trim="true"
328 casesensitive="false" />
david_williams42f9b242006-11-27 18:45:14 +0000329 </condition>
330 </target>
david_williams7888d502007-06-29 06:26:51 +0000331 <target
332 name="initBuilders"
333 depends="check.clean"
334 if="doClean">
david_williams39c5f652008-01-02 07:08:39 +0000335 <echo
336 message="Version tag for ${env.RELENG}: ${mapVersionTag}" />
david_williams7888d502007-06-29 06:26:51 +0000337 <cvs
338 quiet="true"
339 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000340 package="${env.RELENG}"
david_williams7888d502007-06-29 06:26:51 +0000341 dest="${codir}"
342 tag="${mapVersionTag}" />
david_williams42f9b242006-11-27 18:45:14 +0000343 </target>
david_williams39c5f652008-01-02 07:08:39 +0000344</project>