blob: 0398f6bf2ec02350f72024676a7aa18b91be5cb9 [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_williams9ae42e82008-01-11 05:10:55 +000089
david_williams39c5f652008-01-02 07:08:39 +000090 <target
91 name="wtp-R3.0-I">
david_williams7888d502007-06-29 06:26:51 +000092 <cvs
david_williams13d378c2007-08-22 04:04:54 +000093 quiet="${env.CVS_QUIET}"
94 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +000095 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +000096 package="${env.RELENGJSF}"
david_williams7888d502007-06-29 06:26:51 +000097 dest="${codir}"
98 tag="HEAD" />
99 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000100 quiet="${env.CVS_QUIET}"
101 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000102 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000103 package="${env.RELENGDALI}"
david_williams7888d502007-06-29 06:26:51 +0000104 dest="${codir}"
105 tag="HEAD" />
david_williams42f9b242006-11-27 18:45:14 +0000106 </target>
david_williams9ae42e82008-01-11 05:10:55 +0000107
david_williams39c5f652008-01-02 07:08:39 +0000108 <target
109 name="wtp-R3.0-R">
david_williams7888d502007-06-29 06:26:51 +0000110 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000111 quiet="${env.CVS_QUIET}"
112 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000113 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000114 package="${env.RELENGJSF}"
david_williams7888d502007-06-29 06:26:51 +0000115 dest="${codir}"
116 tag="HEAD" />
117 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000118 quiet="${env.CVS_QUIET}"
119 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000120 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000121 package="${env.RELENGDALI}"
david_williams7888d502007-06-29 06:26:51 +0000122 dest="${codir}"
123 tag="HEAD" />
124 </target>
david_williams9ae42e82008-01-11 05:10:55 +0000125
david_williams39c5f652008-01-02 07:08:39 +0000126 <target
127 name="wtp-R1.5-M">
david_williams7888d502007-06-29 06:26:51 +0000128 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000129 quiet="${env.CVS_QUIET}"
130 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000131 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000132 package="${env.RELENG}"
david_williams7888d502007-06-29 06:26:51 +0000133 dest="${codir}"
134 tag="R1_5_maintenance" />
david_williams842e4192007-12-09 07:44:35 +0000135 <cvs
136 quiet="${env.CVS_QUIET}"
137 reallyquiet="${env.CVS_REALLY_QUIET}"
138 cvsRoot="${mapCvsRoot}"
139 package="${env.RELENGMAPS}"
140 dest="${codir}"
141 tag="R1_5_maintenance" />
david_williams42f9b242006-11-27 18:45:14 +0000142 </target>
david_williams9ae42e82008-01-11 05:10:55 +0000143
david_williams39c5f652008-01-02 07:08:39 +0000144 <target
145 name="wtp-R2.0-M">
david_williams7888d502007-06-29 06:26:51 +0000146 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000147 quiet="${env.CVS_QUIET}"
148 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000149 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000150 package="${env.RELENG}"
david_williams7888d502007-06-29 06:26:51 +0000151 dest="${codir}"
152 tag="R2_0_maintenance" />
david_williams842e4192007-12-09 07:44:35 +0000153 <cvs
154 quiet="${env.CVS_QUIET}"
155 reallyquiet="${env.CVS_REALLY_QUIET}"
156 cvsRoot="${mapCvsRoot}"
157 package="${env.RELENGMAPS}"
158 dest="${codir}"
159 tag="R2_0_maintenance" />
david_williams7888d502007-06-29 06:26:51 +0000160 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000161 quiet="${env.CVS_QUIET}"
162 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000163 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000164 package="${env.RELENGDALI}"
david_williams7888d502007-06-29 06:26:51 +0000165 dest="${codir}"
166 tag="R1_0_maintenance" />
167 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000168 quiet="${env.CVS_QUIET}"
169 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000170 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000171 package="${env.RELENGJSF}"
david_williams7888d502007-06-29 06:26:51 +0000172 dest="${codir}"
173 tag="R1_0_maintenance" />
174 </target>
david_williams39c5f652008-01-02 07:08:39 +0000175 <target
176 name="wtp-R2.0-R">
david_williams82723492007-09-25 13:52:23 +0000177 <cvs
178 quiet="${env.CVS_QUIET}"
179 reallyquiet="${env.CVS_REALLY_QUIET}"
180 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000181 package="${env.RELENG}"
david_williams82723492007-09-25 13:52:23 +0000182 dest="${codir}"
183 tag="R2_0_maintenance" />
david_williams842e4192007-12-09 07:44:35 +0000184 <cvs
185 quiet="${env.CVS_QUIET}"
186 reallyquiet="${env.CVS_REALLY_QUIET}"
187 cvsRoot="${mapCvsRoot}"
188 package="${env.RELENGMAPS}"
189 dest="${codir}"
190 tag="R2_0_maintenance" />
david_williams82723492007-09-25 13:52:23 +0000191 <cvs
192 quiet="${env.CVS_QUIET}"
193 reallyquiet="${env.CVS_REALLY_QUIET}"
194 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000195 package="${env.RELENGDALI}"
david_williams82723492007-09-25 13:52:23 +0000196 dest="${codir}"
197 tag="R1_0_maintenance" />
198 <cvs
199 quiet="${env.CVS_QUIET}"
200 reallyquiet="${env.CVS_REALLY_QUIET}"
201 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000202 package="${env.RELENGJSF}"
david_williams82723492007-09-25 13:52:23 +0000203 dest="${codir}"
204 tag="R1_0_maintenance" />
205 </target>
david_williams9ae42e82008-01-11 05:10:55 +0000206
david_williams39c5f652008-01-02 07:08:39 +0000207 <target
208 name="jem-R1.5-M">
david_williams7888d502007-06-29 06:26:51 +0000209 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000210 quiet="${env.CVS_QUIET}"
211 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000212 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000213 package="${env.RELENG}"
david_williams7888d502007-06-29 06:26:51 +0000214 dest="${codir}"
215 tag="R1_5_maintenance" />
david_williams842e4192007-12-09 07:44:35 +0000216 <cvs
217 quiet="${env.CVS_QUIET}"
218 reallyquiet="${env.CVS_REALLY_QUIET}"
219 cvsRoot="${mapCvsRoot}"
220 package="${env.RELENGMAPS}"
221 dest="${codir}"
222 tag="R1_5_maintenance" />
david_williamsc249d492007-04-14 04:11:39 +0000223 </target>
david_williams39c5f652008-01-02 07:08:39 +0000224 <target
225 name="patches-R1.5-P">
david_williams7888d502007-06-29 06:26:51 +0000226 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000227 quiet="${env.CVS_QUIET}"
228 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000229 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000230 package="${env.RELENG}"
david_williams7888d502007-06-29 06:26:51 +0000231 dest="${codir}"
david_williams32752682007-11-19 01:14:28 +0000232 tag="R1_5_5_patches" />
david_williams842e4192007-12-09 07:44:35 +0000233 <cvs
234 quiet="${env.CVS_QUIET}"
235 reallyquiet="${env.CVS_REALLY_QUIET}"
236 cvsRoot="${mapCvsRoot}"
237 package="${env.RELENGMAPS}"
238 dest="${codir}"
239 tag="R1_5_5_patches" />
david_williams42f9b242006-11-27 18:45:14 +0000240 </target>
david_williams39c5f652008-01-02 07:08:39 +0000241 <target
david_williams90455b32008-01-09 01:50:07 +0000242 name="wtpbuildTools-R3.0-T">
david_williams7888d502007-06-29 06:26:51 +0000243 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000244 quiet="${env.CVS_QUIET}"
245 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000246 cvsRoot="${mapCvsRoot}"
david_williams858ea582007-11-19 01:01:27 +0000247 package="${env.RELENG}"
david_williams7888d502007-06-29 06:26:51 +0000248 dest="${codir}"
249 tag="HEAD" />
david_williamse3efab52007-02-26 04:09:53 +0000250 </target>
david_williams8f18f0b2008-01-08 04:32:22 +0000251 <target
david_williams8424c212008-01-08 06:25:18 +0000252 name="incubator-R0.5-I">
david_williams8f18f0b2008-01-08 04:32:22 +0000253 <cvs
254 quiet="${env.CVS_QUIET}"
255 reallyquiet="${env.CVS_REALLY_QUIET}"
256 cvsRoot="${mapCvsRoot}"
257 package="${env.RELENG}"
258 dest="${codir}"
259 tag="HEAD" />
david_williams4432d732008-01-08 04:47:04 +0000260 <cvs
261 quiet="${env.CVS_QUIET}"
262 reallyquiet="${env.CVS_REALLY_QUIET}"
263 cvsRoot="${mapCvsRoot}"
264 package="${env.RELENGMAPS}"
265 dest="${codir}"
266 tag="HEAD" />
david_williams8f18f0b2008-01-08 04:32:22 +0000267 </target>
david_williamsa7f68be2007-06-20 02:17:13 +0000268
david_williamsa7f68be2007-06-20 02:17:13 +0000269
270 <!--
david_williams42f9b242006-11-27 18:45:14 +0000271 The order of execution of these three worker targets
david_williamsa7f68be2007-06-20 02:17:13 +0000272 is critical, check.clean, initBuilders, and
david_williams39c5f652008-01-02 07:08:39 +0000273 then getbuilder.
david_williams42f9b242006-11-27 18:45:14 +0000274 -->
david_williams7888d502007-06-29 06:26:51 +0000275 <target
david_williams39c5f652008-01-02 07:08:39 +0000276 name="getbuilder"
david_williams7888d502007-06-29 06:26:51 +0000277 depends="check.clean,initBuilders"
278 if="doClean">
david_williamsa7f68be2007-06-20 02:17:13 +0000279 <!-- This is a special property file, that contains (only) the
david_williams39c5f652008-01-02 07:08:39 +0000280 value of builderVersion. Then, that version of the builder
david_williams7888d502007-06-29 06:26:51 +0000281 is fetched to control the rest of the build -->
david_williams39c5f652008-01-02 07:08:39 +0000282 <property
283 file="${codir}/${env.RELENG}/maps/build.cfg" />
david_williamsa129dc22008-01-02 07:39:51 +0000284 <fail unless="builderVersion" message="Could not get builderVersion. Probably could not checkout build.cfg" />
david_williams7888d502007-06-29 06:26:51 +0000285 <delete
david_williams2e0afe02008-01-02 04:11:40 +0000286 dir="${codir}/${env.RELENG_BUILDER}"
david_williams7888d502007-06-29 06:26:51 +0000287 failonerror="false" />
288 <echo
david_williams39c5f652008-01-02 07:08:39 +0000289 message="Version tag for ${env.RELENG_BUILDER} is: ${builderVersion}" />
david_williams7888d502007-06-29 06:26:51 +0000290 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000291 quiet="${env.CVS_QUIET}"
292 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000293 cvsRoot="${mapCvsRoot}"
david_williams2e0afe02008-01-02 04:11:40 +0000294 package="${env.RELENG_BUILDER}"
david_williams7888d502007-06-29 06:26:51 +0000295 dest="${codir}"
david_williams39c5f652008-01-02 07:08:39 +0000296 tag="${builderVersion}" />
david_williams42f9b242006-11-27 18:45:14 +0000297 </target>
david_williams39c5f652008-01-02 07:08:39 +0000298 <target
299 name="check.clean">
david_williams7888d502007-06-29 06:26:51 +0000300 <echo
david_williamseceb39b2008-01-02 04:21:44 +0000301 message="checkout.builder.clean: ${checkout.builder.clean}" />
david_williams39c5f652008-01-02 07:08:39 +0000302 <condition
303 property="doClean">
david_williams7888d502007-06-29 06:26:51 +0000304 <equals
david_williamseceb39b2008-01-02 04:21:44 +0000305 arg1="${checkout.builder.clean}"
david_williams7888d502007-06-29 06:26:51 +0000306 arg2="true"
307 trim="true"
308 casesensitive="false" />
david_williams42f9b242006-11-27 18:45:14 +0000309 </condition>
310 </target>
david_williams7888d502007-06-29 06:26:51 +0000311 <target
312 name="initBuilders"
313 depends="check.clean"
314 if="doClean">
david_williams39c5f652008-01-02 07:08:39 +0000315 <echo
316 message="Version tag for ${env.RELENG}: ${mapVersionTag}" />
david_williams7888d502007-06-29 06:26:51 +0000317 <cvs
318 quiet="true"
319 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000320 package="${env.RELENG}"
david_williams7888d502007-06-29 06:26:51 +0000321 dest="${codir}"
322 tag="${mapVersionTag}" />
david_williams42f9b242006-11-27 18:45:14 +0000323 </target>
david_williams39c5f652008-01-02 07:08:39 +0000324</project>