blob: a377f27662aea4b3d10827f30a5d19962e092aed [file] [log] [blame]
david_williams42f9b242006-11-27 18:45:14 +00001<project name="checkout" default="checkout" basedir=".">
david_williamsbb0fc612006-05-19 10:28:20 +00002
david_williams42f9b242006-11-27 18:45:14 +00003 <!-- = = = standard properties pattern = = = -->
4 <!--
5 Note to be cross-platform, "environment variables" are only appropriate for
6 some variables, e.g. ones we set, since properties are case sensitive, even if
7 the environment variables on your operating system are not, e.g. it will
8 be ${env.Path} not ${env.PATH} on Windows -->
9 <property environment="env" />
david_williams2f3f3c22007-02-17 23:56:37 +000010
david_williams42f9b242006-11-27 18:45:14 +000011 <!--
12 Let users override standard properties, if desired.
13 If directory, file, or some properties do not exist,
14 then standard properties will be used.
15 -->
16 <property file="${env.LOCAL_BUILD_PROPERTIES_DIR}/${ant.project.name}.properties" />
david_williamsbb0fc612006-05-19 10:28:20 +000017
david_williams42f9b242006-11-27 18:45:14 +000018 <!-- load standard properties for production environment -->
19 <property file="${env.STANDARD_PROPERTIES_DIR}/${ant.project.name}.properties" />
20 <!-- = = = end standard properties pattern = = = -->
21
david_williamsf64f0222006-11-28 21:37:13 +000022 <!-- if not otherwise set, the following are good default values -->
david_williams2f3f3c22007-02-17 23:56:37 +000023 <property name="checkout.wtpbuilder.clean"
24 value="true" />
david_williamsf64f0222006-11-28 21:37:13 +000025 <property name="mapVersionTag" value="HEAD" />
david_williamse997dab2006-11-29 03:52:45 +000026
27 <property name="mapCvsRoot"
28 value=":${cvsProtocol}:${cvsUser}@${cvsServer}:${cvsRoot}" />
david_williams2f3f3c22007-02-17 23:56:37 +000029
david_williams42f9b242006-11-27 18:45:14 +000030 <property name="codir"
31 value="${env.BUILD_HOME}/build-node/checkout/${checkoutprojectname}" />
david_williamsbb0fc612006-05-19 10:28:20 +000032
33
34
david_williams2f3f3c22007-02-17 23:56:37 +000035 <echo message="checkoutprojectname: ${checkoutprojectname}" />
david_williams42023ed2006-11-28 19:09:40 +000036 <target name="checkout" if="checkoutprojectname">
david_williams42f9b242006-11-27 18:45:14 +000037 <!-- we always check and init the builder -->
38 <antcall target="getwtpbuilder" />
39 <!-- and projects can do more if needed. -->
40 <antcall target="${checkoutprojectname}" />
41 </target>
david_williamsbb0fc612006-05-19 10:28:20 +000042
david_williams42f9b242006-11-27 18:45:14 +000043 <target name="wtp-R2.0-N">
david_williamsbb0fc612006-05-19 10:28:20 +000044
david_williams42f9b242006-11-27 18:45:14 +000045 <!--
46 do not need, since we do nightly builds "on demand" only
47 <cvs quiet="true" cvsRoot="${mapCvsRoot}" package="${wst}" dest="${codir}" />
48 <cvs quiet="true" cvsRoot="${mapCvsRoot}" package="${jst}" dest="${codir}" />
49 -->
david_williamsbb0fc612006-05-19 10:28:20 +000050
david_williams42f9b242006-11-27 18:45:14 +000051 </target>
david_williamsbb0fc612006-05-19 10:28:20 +000052
david_williams42f9b242006-11-27 18:45:14 +000053 <target name="wtp-R2.0-S">
54 <cvs quiet="true"
55 cvsRoot="${mapCvsRoot}"
56 package="releng-jsf"
57 dest="${codir}"
58 tag="HEAD" />
59 <cvs quiet="true"
60 cvsRoot="${mapCvsRoot}"
61 package="releng.dali"
62 dest="${codir}"
63 tag="HEAD" />
64 </target>
david_williamsbb0fc612006-05-19 10:28:20 +000065
david_williams42f9b242006-11-27 18:45:14 +000066 <target name="wtp-R2.0-I">
67 <cvs quiet="true"
68 cvsRoot="${mapCvsRoot}"
69 package="releng-jsf"
70 dest="${codir}"
71 tag="HEAD" />
72 <cvs quiet="true"
73 cvsRoot="${mapCvsRoot}"
74 package="releng.dali"
75 dest="${codir}"
76 tag="HEAD" />
77 </target>
david_williamsbb0fc612006-05-19 10:28:20 +000078
david_williams42f9b242006-11-27 18:45:14 +000079 <target name="wtp-R2.0-R">
80 <cvs quiet="true"
81 cvsRoot="${mapCvsRoot}"
82 package="releng-jsf"
83 dest="${codir}"
84 tag="HEAD" />
85 <cvs quiet="true"
86 cvsRoot="${mapCvsRoot}"
87 package="releng.dali"
88 dest="${codir}"
89 tag="HEAD" />
90 </target>
91
92 <target name="wtp-R1.5-M">
93 <cvs quiet="true"
94 cvsRoot="${mapCvsRoot}"
95 package="${releng}"
96 dest="${codir}"
97 tag="R1_5_maintenance" />
98 </target>
david_williamsc249d492007-04-14 04:11:39 +000099 <target name="jem-R1.5-M">
100 <cvs quiet="true"
101 cvsRoot="${mapCvsRoot}"
102 package="${releng}"
103 dest="${codir}"
104 tag="R1_5_maintenance" />
105 </target>
david_williams0ef9b0c2006-12-04 23:46:40 +0000106 <target name="patches-R1.5-P">
david_williams42f9b242006-11-27 18:45:14 +0000107 <cvs quiet="true"
108 cvsRoot="${mapCvsRoot}"
109 package="${releng}"
110 dest="${codir}"
111 tag="R1_5_maintenance_patches" />
112 </target>
113
114 <target name="wtp-thirdparty-R2.0-T">
115 <cvs quiet="true"
116 cvsRoot="${mapCvsRoot}"
117 package="releng-thirdparty"
118 dest="${codir}"
119 tag="HEAD" />
120 </target>
david_williamse3efab52007-02-26 04:09:53 +0000121 <target name="wtp-buildTools-R2.0-T">
122 <cvs quiet="true"
123 cvsRoot="${mapCvsRoot}"
124 package="releng"
125 dest="${codir}"
126 tag="HEAD" />
127 </target>
david_williamsbb0fc612006-05-19 10:28:20 +0000128
david_williams948bf552007-02-26 05:17:22 +0000129 <target name="wst-R2.0-I">
130 <cvs quiet="true"
131 cvsRoot="${mapCvsRoot}"
132 package="releng"
133 dest="${codir}"
134 tag="HEAD" />
135 </target>
david_williamsbb0fc612006-05-19 10:28:20 +0000136
david_williams42f9b242006-11-27 18:45:14 +0000137 <!--
138 The order of execution of these three worker targets
139 is critical, check.clean, initBuilders, and
140 then getwtpbuilder.
141 -->
142 <target name="getwtpbuilder"
143 depends="check.clean,initBuilders"
144 if="doClean">
145 <!-- This is a special property file, that contains (only) the
146 value of wtpBuilderVersion. Then, that version of the builder
147 is fetched to control the rest of the build -->
148 <property file="${codir}/${releng}/maps/build.cfg" />
149 <delete dir="${codir}/releng.wtpbuilder"
150 failonerror="false" />
151 <echo message="Version tag for ${releng.builder} is: ${wtpBuilderVersion}" />
152 <cvs quiet="true"
153 cvsRoot="${mapCvsRoot}"
154 package="${releng.builder}"
155 dest="${codir}"
156 tag="${wtpBuilderVersion}" />
157 </target>
david_williamsbb0fc612006-05-19 10:28:20 +0000158
david_williams42f9b242006-11-27 18:45:14 +0000159 <target name="check.clean">
david_williams2f3f3c22007-02-17 23:56:37 +0000160 <echo message="checkout.wtpbuilder.clean: ${checkout.wtpbuilder.clean}" />
david_williams42f9b242006-11-27 18:45:14 +0000161 <condition property="doClean">
162 <equals arg1="${checkout.wtpbuilder.clean}"
david_williams2f3f3c22007-02-17 23:56:37 +0000163 arg2="true"
164 trim="true"
165 casesensitive="false" />
david_williams42f9b242006-11-27 18:45:14 +0000166 </condition>
167 </target>
david_williamsbb0fc612006-05-19 10:28:20 +0000168
david_williams42f9b242006-11-27 18:45:14 +0000169 <target name="initBuilders" if="doClean">
170 <echo message="Version tag for ${releng}: ${mapVersionTag}" />
171 <cvs quiet="true"
172 cvsRoot="${mapCvsRoot}"
173 package="${releng}"
174 dest="${codir}"
175 tag="${mapVersionTag}" />
176 </target>
david_williamsbb0fc612006-05-19 10:28:20 +0000177
178
179</project>
180