blob: 7ffa63604aabe027f0b30bd891bee53bf5087381 [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"
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_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_williams42f9b242006-11-27 18:45:14 +0000132 </target>
david_williams7888d502007-06-29 06:26:51 +0000133 <target name="retest-wtp-R1.5-M">
134 <antcall target="wtp-R1.5-M" />
135 </target>
136 <target name="wtp-R2.0-M">
137 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000138 quiet="${env.CVS_QUIET}"
139 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000140 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000141 package="${env.RELENG}"
david_williams7888d502007-06-29 06:26:51 +0000142 dest="${codir}"
143 tag="R2_0_maintenance" />
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.RELENGDALI}"
david_williams7888d502007-06-29 06:26:51 +0000149 dest="${codir}"
150 tag="R1_0_maintenance" />
151 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000152 quiet="${env.CVS_QUIET}"
153 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000154 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000155 package="${env.RELENGJSF}"
david_williams7888d502007-06-29 06:26:51 +0000156 dest="${codir}"
157 tag="R1_0_maintenance" />
158 </target>
david_williams82723492007-09-25 13:52:23 +0000159 <target name="wtp-R2.0-R">
160 <cvs
161 quiet="${env.CVS_QUIET}"
162 reallyquiet="${env.CVS_REALLY_QUIET}"
163 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000164 package="${env.RELENG}"
david_williams82723492007-09-25 13:52:23 +0000165 dest="${codir}"
166 tag="R2_0_maintenance" />
167 <cvs
168 quiet="${env.CVS_QUIET}"
169 reallyquiet="${env.CVS_REALLY_QUIET}"
170 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000171 package="${env.RELENGDALI}"
david_williams82723492007-09-25 13:52:23 +0000172 dest="${codir}"
173 tag="R1_0_maintenance" />
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.RELENGJSF}"
david_williams82723492007-09-25 13:52:23 +0000179 dest="${codir}"
180 tag="R1_0_maintenance" />
181 </target>
david_williams7888d502007-06-29 06:26:51 +0000182 <target name="retest-wtp-R2.0-M">
183 <antcall target="wtp-R2.0-M" />
184 </target>
185
david_williamsc249d492007-04-14 04:11:39 +0000186 <target name="jem-R1.5-M">
david_williams7888d502007-06-29 06:26:51 +0000187 <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.RELENG}"
david_williams7888d502007-06-29 06:26:51 +0000192 dest="${codir}"
193 tag="R1_5_maintenance" />
david_williamsc249d492007-04-14 04:11:39 +0000194 </target>
david_williams0ef9b0c2006-12-04 23:46:40 +0000195 <target name="patches-R1.5-P">
david_williams7888d502007-06-29 06:26:51 +0000196 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000197 quiet="${env.CVS_QUIET}"
198 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000199 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000200 package="${env.RELENG}"
david_williams7888d502007-06-29 06:26:51 +0000201 dest="${codir}"
202 tag="R1_5_maintenance_patches" />
david_williams42f9b242006-11-27 18:45:14 +0000203 </target>
204
david_williams7888d502007-06-29 06:26:51 +0000205 <target name="wtp-buildTools-R3.0-T">
206 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000207 quiet="${env.CVS_QUIET}"
208 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000209 cvsRoot="${mapCvsRoot}"
210 package="releng"
211 dest="${codir}"
212 tag="HEAD" />
david_williamse3efab52007-02-26 04:09:53 +0000213 </target>
david_williamsbb0fc612006-05-19 10:28:20 +0000214
david_williamsa7f68be2007-06-20 02:17:13 +0000215
david_williamsa7f68be2007-06-20 02:17:13 +0000216
217 <!--
david_williams42f9b242006-11-27 18:45:14 +0000218 The order of execution of these three worker targets
david_williamsa7f68be2007-06-20 02:17:13 +0000219 is critical, check.clean, initBuilders, and
david_williams42f9b242006-11-27 18:45:14 +0000220 then getwtpbuilder.
221 -->
david_williams7888d502007-06-29 06:26:51 +0000222 <target
223 name="getwtpbuilder"
224 depends="check.clean,initBuilders"
225 if="doClean">
david_williamsa7f68be2007-06-20 02:17:13 +0000226 <!-- This is a special property file, that contains (only) the
david_williams7888d502007-06-29 06:26:51 +0000227 value of wtpBuilderVersion. Then, that version of the builder
228 is fetched to control the rest of the build -->
david_williamsa5570522007-11-16 23:12:47 +0000229 <property file="${codir}/${env.RELENG}/maps/build.cfg" />
david_williams7888d502007-06-29 06:26:51 +0000230 <delete
231 dir="${codir}/releng.wtpbuilder"
232 failonerror="false" />
233 <echo
david_williams97325e72007-11-16 23:44:40 +0000234 message="Version tag for ${env.RELENGWTPBUILDER} is: ${wtpBuilderVersion}" />
david_williams7888d502007-06-29 06:26:51 +0000235 <cvs
david_williams13d378c2007-08-22 04:04:54 +0000236 quiet="${env.CVS_QUIET}"
237 reallyquiet="${env.CVS_REALLY_QUIET}"
david_williams7888d502007-06-29 06:26:51 +0000238 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000239 package="${env.RELENGWTPBUILDER}"
david_williams7888d502007-06-29 06:26:51 +0000240 dest="${codir}"
241 tag="${wtpBuilderVersion}" />
david_williams42f9b242006-11-27 18:45:14 +0000242 </target>
david_williamsbb0fc612006-05-19 10:28:20 +0000243
david_williams42f9b242006-11-27 18:45:14 +0000244 <target name="check.clean">
david_williams7888d502007-06-29 06:26:51 +0000245 <echo
246 message="checkout.wtpbuilder.clean: ${checkout.wtpbuilder.clean}" />
david_williams42f9b242006-11-27 18:45:14 +0000247 <condition property="doClean">
david_williams7888d502007-06-29 06:26:51 +0000248 <equals
249 arg1="${checkout.wtpbuilder.clean}"
250 arg2="true"
251 trim="true"
252 casesensitive="false" />
david_williams42f9b242006-11-27 18:45:14 +0000253 </condition>
254 </target>
david_williamsbb0fc612006-05-19 10:28:20 +0000255
david_williams7888d502007-06-29 06:26:51 +0000256 <target
257 name="initBuilders"
258 depends="check.clean"
259 if="doClean">
david_williamsa5570522007-11-16 23:12:47 +0000260 <echo message="Version tag for ${env.RELENG}: ${mapVersionTag}" />
david_williams7888d502007-06-29 06:26:51 +0000261 <cvs
262 quiet="true"
263 cvsRoot="${mapCvsRoot}"
david_williamsa5570522007-11-16 23:12:47 +0000264 package="${env.RELENG}"
david_williams7888d502007-06-29 06:26:51 +0000265 dest="${codir}"
266 tag="${mapVersionTag}" />
david_williams42f9b242006-11-27 18:45:14 +0000267 </target>
david_williamsbb0fc612006-05-19 10:28:20 +0000268
269
270</project>
271