blob: 79e811791c86dedfaf4c78d4faa49a052bb218e5 [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" />
10
11 <!--
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_williamsfb2cdd42006-11-28 07:00:52 +000023 <property name="checkout.wtpbuilder.clean" value="true"/>
david_williamsf64f0222006-11-28 21:37:13 +000024 <property name="mapVersionTag" value="HEAD" />
david_williamse997dab2006-11-29 03:52:45 +000025
26 <property name="mapCvsRoot"
27 value=":${cvsProtocol}:${cvsUser}@${cvsServer}:${cvsRoot}" />
28
david_williams42f9b242006-11-27 18:45:14 +000029 <property name="codir"
30 value="${env.BUILD_HOME}/build-node/checkout/${checkoutprojectname}" />
david_williamsbb0fc612006-05-19 10:28:20 +000031
32
33
david_williams42f9b242006-11-27 18:45:14 +000034 <echo message="checkoutprojectname: ${checkoutprojectname}" />
david_williams42023ed2006-11-28 19:09:40 +000035 <target name="checkout" if="checkoutprojectname">
david_williams42f9b242006-11-27 18:45:14 +000036 <!-- we always check and init the builder -->
37 <antcall target="getwtpbuilder" />
38 <!-- and projects can do more if needed. -->
39 <antcall target="${checkoutprojectname}" />
40 </target>
david_williamsbb0fc612006-05-19 10:28:20 +000041
david_williams42f9b242006-11-27 18:45:14 +000042 <target name="wtp-R2.0-N">
david_williamsbb0fc612006-05-19 10:28:20 +000043
david_williams42f9b242006-11-27 18:45:14 +000044 <!--
45 do not need, since we do nightly builds "on demand" only
46 <cvs quiet="true" cvsRoot="${mapCvsRoot}" package="${wst}" dest="${codir}" />
47 <cvs quiet="true" cvsRoot="${mapCvsRoot}" package="${jst}" dest="${codir}" />
48 -->
david_williamsbb0fc612006-05-19 10:28:20 +000049
david_williams42f9b242006-11-27 18:45:14 +000050 </target>
david_williamsbb0fc612006-05-19 10:28:20 +000051
david_williams42f9b242006-11-27 18:45:14 +000052 <target name="wtp-R2.0-S">
53 <cvs quiet="true"
54 cvsRoot="${mapCvsRoot}"
55 package="releng-jsf"
56 dest="${codir}"
57 tag="HEAD" />
58 <cvs quiet="true"
59 cvsRoot="${mapCvsRoot}"
60 package="releng.dali"
61 dest="${codir}"
62 tag="HEAD" />
63 </target>
david_williamsbb0fc612006-05-19 10:28:20 +000064
david_williams42f9b242006-11-27 18:45:14 +000065 <target name="wtp-R2.0-I">
66 <cvs quiet="true"
67 cvsRoot="${mapCvsRoot}"
68 package="releng-jsf"
69 dest="${codir}"
70 tag="HEAD" />
71 <cvs quiet="true"
72 cvsRoot="${mapCvsRoot}"
73 package="releng.dali"
74 dest="${codir}"
75 tag="HEAD" />
76 </target>
david_williamsbb0fc612006-05-19 10:28:20 +000077
david_williams42f9b242006-11-27 18:45:14 +000078 <target name="wtp-R2.0-R">
79 <cvs quiet="true"
80 cvsRoot="${mapCvsRoot}"
81 package="releng-jsf"
82 dest="${codir}"
83 tag="HEAD" />
84 <cvs quiet="true"
85 cvsRoot="${mapCvsRoot}"
86 package="releng.dali"
87 dest="${codir}"
88 tag="HEAD" />
89 </target>
90
91 <target name="wtp-R1.5-M">
92 <cvs quiet="true"
93 cvsRoot="${mapCvsRoot}"
94 package="${releng}"
95 dest="${codir}"
96 tag="R1_5_maintenance" />
97 </target>
98
david_williams0ef9b0c2006-12-04 23:46:40 +000099 <target name="patches-R1.5-P">
david_williams42f9b242006-11-27 18:45:14 +0000100 <cvs quiet="true"
101 cvsRoot="${mapCvsRoot}"
102 package="${releng}"
103 dest="${codir}"
104 tag="R1_5_maintenance_patches" />
105 </target>
106
107 <target name="wtp-thirdparty-R2.0-T">
108 <cvs quiet="true"
109 cvsRoot="${mapCvsRoot}"
110 package="releng-thirdparty"
111 dest="${codir}"
112 tag="HEAD" />
113 </target>
david_williamsbb0fc612006-05-19 10:28:20 +0000114
115
david_williamsbb0fc612006-05-19 10:28:20 +0000116
117
david_williams42f9b242006-11-27 18:45:14 +0000118 <!--
119 The order of execution of these three worker targets
120 is critical, check.clean, initBuilders, and
121 then getwtpbuilder.
122 -->
123 <target name="getwtpbuilder"
124 depends="check.clean,initBuilders"
125 if="doClean">
126 <!-- This is a special property file, that contains (only) the
127 value of wtpBuilderVersion. Then, that version of the builder
128 is fetched to control the rest of the build -->
129 <property file="${codir}/${releng}/maps/build.cfg" />
130 <delete dir="${codir}/releng.wtpbuilder"
131 failonerror="false" />
132 <echo message="Version tag for ${releng.builder} is: ${wtpBuilderVersion}" />
133 <cvs quiet="true"
134 cvsRoot="${mapCvsRoot}"
135 package="${releng.builder}"
136 dest="${codir}"
137 tag="${wtpBuilderVersion}" />
138 </target>
david_williamsbb0fc612006-05-19 10:28:20 +0000139
david_williams42f9b242006-11-27 18:45:14 +0000140 <target name="check.clean">
141 <condition property="doClean">
142 <equals arg1="${checkout.wtpbuilder.clean}"
143 arg2="true" />
144 </condition>
145 </target>
david_williamsbb0fc612006-05-19 10:28:20 +0000146
david_williams42f9b242006-11-27 18:45:14 +0000147 <target name="initBuilders" if="doClean">
148 <echo message="Version tag for ${releng}: ${mapVersionTag}" />
149 <cvs quiet="true"
150 cvsRoot="${mapCvsRoot}"
151 package="${releng}"
152 dest="${codir}"
153 tag="${mapVersionTag}" />
154 </target>
david_williamsbb0fc612006-05-19 10:28:20 +0000155
156
157</project>
158