blob: 1b3a486f8cf2c42c470d82fe15a0437cd98e592e [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_williams13d378c2007-08-22 04:04:54 +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"
david_williams8f1cae12007-11-17 02:07:46 +000041 value="${env.BUILD_HOME}/projectBuilders/${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_williams42f9b242006-11-27 18:45:14 +000057 </target>
david_williams13d378c2007-08-22 04:04:54 +000058
david_williams7888d502007-06-29 06:26:51 +000059 <target name="retest-wtp-R3.0-N">
60 <antcall target="wtp-R3.0-N" />
61 </target>
david_williamsbb0fc612006-05-19 10:28:20 +000062
david_williams7888d502007-06-29 06:26:51 +000063 <target name="wtp-R3.0-S">
64 <cvs
david_williams13d378c2007-08-22 04:04:54 +000065 quiet="${env.CVS_QUIET}"
66 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +000067 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +000068 package="${env.RELENGJSF}"
david_williams7888d502007-06-29 06:26:51 +000069 dest="${codir}"
70 tag="HEAD" />
71 <cvs
david_williams13d378c2007-08-22 04:04:54 +000072 quiet="${env.CVS_QUIET}"
73 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +000074 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +000075 package="${env.RELENGDALI}"
david_williams7888d502007-06-29 06:26:51 +000076 dest="${codir}"
77 tag="HEAD" />
david_williams42f9b242006-11-27 18:45:14 +000078 </target>
david_williams7888d502007-06-29 06:26:51 +000079 <target name="retest-wtp-R3.0-S">
80 <antcall target="wtp-R3.0-S" />
david_williams42f9b242006-11-27 18:45:14 +000081 </target>
david_williams7888d502007-06-29 06:26:51 +000082
83 <target name="wtp-R3.0-I">
84 <cvs
david_williams13d378c2007-08-22 04:04:54 +000085 quiet="${env.CVS_QUIET}"
86 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +000087 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +000088 package="${env.RELENGJSF}"
david_williams7888d502007-06-29 06:26:51 +000089 dest="${codir}"
90 tag="HEAD" />
91 <cvs
david_williams13d378c2007-08-22 04:04:54 +000092 quiet="${env.CVS_QUIET}"
93 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +000094 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +000095 package="${env.RELENGDALI}"
david_williams7888d502007-06-29 06:26:51 +000096 dest="${codir}"
97 tag="HEAD" />
david_williams42f9b242006-11-27 18:45:14 +000098 </target>
david_williams7888d502007-06-29 06:26:51 +000099 <target name="retest-wtp-R3.0-I">
100 <antcall target="wtp-R3.0-I" />
101 </target>
102
103 <target name="wtp-R3.0-R">
104 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000105 quiet="${env.CVS_QUIET}"
106 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000107 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000108 package="${env.RELENGJSF}"
david_williams7888d502007-06-29 06:26:51 +0000109 dest="${codir}"
110 tag="HEAD" />
111 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000112 quiet="${env.CVS_QUIET}"
113 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000114 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000115 package="${env.RELENGDALI}"
david_williams7888d502007-06-29 06:26:51 +0000116 dest="${codir}"
117 tag="HEAD" />
118 </target>
119 <target name="retest-wtp-R3.0-R">
120 <antcall target="wtp-R3.0-R" />
david_williamsa7f68be2007-06-20 02:17:13 +0000121 </target>
122
david_williams42f9b242006-11-27 18:45:14 +0000123
124 <target name="wtp-R1.5-M">
david_williams7888d502007-06-29 06:26:51 +0000125 <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.RELENG}"
david_williams7888d502007-06-29 06:26:51 +0000130 dest="${codir}"
131 tag="R1_5_maintenance" />
david_williams858ea582007-11-19 01:01:27 +0000132 <cvs
133 quiet="${env.CVS_QUIET}"
134 reallyquiet="${env.CVS_REALLY_QUIET}"
135 cvsRoot="${mapCvsRoot}"
136 package="${env.RELENGMAPS}"
137 dest="${codir}"
138 tag="R1_5_maintenance" />
david_williams42f9b242006-11-27 18:45:14 +0000139 </target>
david_williams7888d502007-06-29 06:26:51 +0000140 <target name="retest-wtp-R1.5-M">
141 <antcall target="wtp-R1.5-M" />
142 </target>
143 <target name="wtp-R2.0-M">
144 <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="R2_0_maintenance" />
david_williams858ea582007-11-19 01:01:27 +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="R2_0_maintenance" />
david_williams7888d502007-06-29 06:26:51 +0000158 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000159 quiet="${env.CVS_QUIET}"
160 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000161 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000162 package="${env.RELENGDALI}"
david_williams7888d502007-06-29 06:26:51 +0000163 dest="${codir}"
164 tag="R1_0_maintenance" />
165 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000166 quiet="${env.CVS_QUIET}"
167 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000168 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000169 package="${env.RELENGJSF}"
david_williams7888d502007-06-29 06:26:51 +0000170 dest="${codir}"
171 tag="R1_0_maintenance" />
172 </target>
david_williams82723492007-09-25 13:52:23 +0000173 <target name="wtp-R2.0-R">
174 <cvs
175 quiet="${env.CVS_QUIET}"
176 reallyquiet="${env.CVS_REALLY_QUIET}"
177 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000178 package="${env.RELENG}"
david_williams82723492007-09-25 13:52:23 +0000179 dest="${codir}"
180 tag="R2_0_maintenance" />
david_williams858ea582007-11-19 01:01:27 +0000181 <cvs
182 quiet="${env.CVS_QUIET}"
183 reallyquiet="${env.CVS_REALLY_QUIET}"
184 cvsRoot="${mapCvsRoot}"
185 package="${env.RELENGMAPS}"
186 dest="${codir}"
187 tag="R2_0_maintenance" />
david_williams82723492007-09-25 13:52:23 +0000188 <cvs
189 quiet="${env.CVS_QUIET}"
190 reallyquiet="${env.CVS_REALLY_QUIET}"
191 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000192 package="${env.RELENGDALI}"
david_williams82723492007-09-25 13:52:23 +0000193 dest="${codir}"
194 tag="R1_0_maintenance" />
195 <cvs
196 quiet="${env.CVS_QUIET}"
197 reallyquiet="${env.CVS_REALLY_QUIET}"
198 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000199 package="${env.RELENGJSF}"
david_williams82723492007-09-25 13:52:23 +0000200 dest="${codir}"
201 tag="R1_0_maintenance" />
202 </target>
david_williams7888d502007-06-29 06:26:51 +0000203 <target name="retest-wtp-R2.0-M">
204 <antcall target="wtp-R2.0-M" />
205 </target>
206
david_williamsc249d492007-04-14 04:11:39 +0000207 <target name="jem-R1.5-M">
david_williams7888d502007-06-29 06:26:51 +0000208 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000209 quiet="${env.CVS_QUIET}"
210 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000211 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000212 package="${env.RELENG}"
david_williams7888d502007-06-29 06:26:51 +0000213 dest="${codir}"
214 tag="R1_5_maintenance" />
david_williams858ea582007-11-19 01:01:27 +0000215 <cvs
216 quiet="${env.CVS_QUIET}"
217 reallyquiet="${env.CVS_REALLY_QUIET}"
218 cvsRoot="${mapCvsRoot}"
219 package="${env.RELENGMAPS}"
220 dest="${codir}"
221 tag="R1_5_maintenance" />
david_williamsc249d492007-04-14 04:11:39 +0000222 </target>
david_williams858ea582007-11-19 01:01:27 +0000223
david_williams0ef9b0c2006-12-04 23:46:40 +0000224 <target name="patches-R1.5-P">
david_williams7888d502007-06-29 06:26:51 +0000225 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000226 quiet="${env.CVS_QUIET}"
227 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000228 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000229 package="${env.RELENG}"
david_williams7888d502007-06-29 06:26:51 +0000230 dest="${codir}"
231 tag="R1_5_maintenance_patches" />
david_williams858ea582007-11-19 01:01:27 +0000232 <cvs
233 quiet="${env.CVS_QUIET}"
234 reallyquiet="${env.CVS_REALLY_QUIET}"
235 cvsRoot="${mapCvsRoot}"
236 package="${env.RELENGMAPS}"
237 dest="${codir}"
238 tag="R1_5_maintenance_patches" />
david_williams42f9b242006-11-27 18:45:14 +0000239 </target>
240
david_williams7888d502007-06-29 06:26:51 +0000241 <target name="wtp-buildTools-R3.0-T">
242 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000243 quiet="${env.CVS_QUIET}"
244 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000245 cvsRoot="${mapCvsRoot}"
david_williams858ea582007-11-19 01:01:27 +0000246 package="${env.RELENG}"
david_williams7888d502007-06-29 06:26:51 +0000247 dest="${codir}"
248 tag="HEAD" />
david_williamse3efab52007-02-26 04:09:53 +0000249 </target>
david_williamsbb0fc612006-05-19 10:28:20 +0000250
david_williamsa7f68be2007-06-20 02:17:13 +0000251
david_williamsa7f68be2007-06-20 02:17:13 +0000252
253 <!--
david_williams42f9b242006-11-27 18:45:14 +0000254 The order of execution of these three worker targets
david_williamsa7f68be2007-06-20 02:17:13 +0000255 is critical, check.clean, initBuilders, and
david_williams42f9b242006-11-27 18:45:14 +0000256 then getwtpbuilder.
257 -->
david_williams7888d502007-06-29 06:26:51 +0000258 <target
259 name="getwtpbuilder"
260 depends="check.clean,initBuilders"
261 if="doClean">
david_williamsa7f68be2007-06-20 02:17:13 +0000262 <!-- This is a special property file, that contains (only) the
david_williams7888d502007-06-29 06:26:51 +0000263 value of wtpBuilderVersion. Then, that version of the builder
264 is fetched to control the rest of the build -->
david_williamsa5570522007-11-16 23:12:47 +0000265 <property file="${codir}/${env.RELENG}/maps/build.cfg" />
david_williams7888d502007-06-29 06:26:51 +0000266 <delete
david_williams63908472007-11-16 23:53:14 +0000267 dir="${codir}/${env.RELENGWTPBUILDER}"
david_williams7888d502007-06-29 06:26:51 +0000268 failonerror="false" />
269 <echo
david_williams97325e72007-11-16 23:44:40 +0000270 message="Version tag for ${env.RELENGWTPBUILDER} is: ${wtpBuilderVersion}" />
david_williams7888d502007-06-29 06:26:51 +0000271 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000272 quiet="${env.CVS_QUIET}"
273 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000274 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000275 package="${env.RELENGWTPBUILDER}"
david_williams7888d502007-06-29 06:26:51 +0000276 dest="${codir}"
277 tag="${wtpBuilderVersion}" />
david_williams42f9b242006-11-27 18:45:14 +0000278 </target>
david_williamsbb0fc612006-05-19 10:28:20 +0000279
david_williams42f9b242006-11-27 18:45:14 +0000280 <target name="check.clean">
david_williams7888d502007-06-29 06:26:51 +0000281 <echo
282 message="checkout.wtpbuilder.clean: ${checkout.wtpbuilder.clean}" />
david_williams42f9b242006-11-27 18:45:14 +0000283 <condition property="doClean">
david_williams7888d502007-06-29 06:26:51 +0000284 <equals
285 arg1="${checkout.wtpbuilder.clean}"
286 arg2="true"
287 trim="true"
288 casesensitive="false" />
david_williams42f9b242006-11-27 18:45:14 +0000289 </condition>
290 </target>
david_williamsbb0fc612006-05-19 10:28:20 +0000291
david_williams7888d502007-06-29 06:26:51 +0000292 <target
293 name="initBuilders"
294 depends="check.clean"
295 if="doClean">
david_williamsa5570522007-11-16 23:12:47 +0000296 <echo message="Version tag for ${env.RELENG}: ${mapVersionTag}" />
david_williams7888d502007-06-29 06:26:51 +0000297 <cvs
298 quiet="true"
299 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000300 package="${env.RELENG}"
david_williams7888d502007-06-29 06:26:51 +0000301 dest="${codir}"
302 tag="${mapVersionTag}" />
david_williams42f9b242006-11-27 18:45:14 +0000303 </target>
david_williamsbb0fc612006-05-19 10:28:20 +0000304
305
306</project>
307