blob: bf1f2965ab7159ff15dec74b8f4a12bb0bbc86da [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
22
23 <property name="codir"
24 value="${env.BUILD_HOME}/build-node/checkout/${checkoutprojectname}" />
david_williamsbb0fc612006-05-19 10:28:20 +000025
26
27
david_williams42f9b242006-11-27 18:45:14 +000028 <echo message="checkoutprojectname: ${checkoutprojectname}" />
29 <target name="checkout" if="${checkoutprojectname}">
30 <!-- we always check and init the builder -->
31 <antcall target="getwtpbuilder" />
32 <!-- and projects can do more if needed. -->
33 <antcall target="${checkoutprojectname}" />
34 </target>
david_williamsbb0fc612006-05-19 10:28:20 +000035
david_williams42f9b242006-11-27 18:45:14 +000036 <target name="wtp-R2.0-N">
david_williamsbb0fc612006-05-19 10:28:20 +000037
david_williams42f9b242006-11-27 18:45:14 +000038 <!--
39 do not need, since we do nightly builds "on demand" only
40 <cvs quiet="true" cvsRoot="${mapCvsRoot}" package="${wst}" dest="${codir}" />
41 <cvs quiet="true" cvsRoot="${mapCvsRoot}" package="${jst}" dest="${codir}" />
42 -->
david_williamsbb0fc612006-05-19 10:28:20 +000043
david_williams42f9b242006-11-27 18:45:14 +000044 </target>
david_williamsbb0fc612006-05-19 10:28:20 +000045
david_williams42f9b242006-11-27 18:45:14 +000046 <target name="wtp-R2.0-S">
47 <cvs quiet="true"
48 cvsRoot="${mapCvsRoot}"
49 package="releng-jsf"
50 dest="${codir}"
51 tag="HEAD" />
52 <cvs quiet="true"
53 cvsRoot="${mapCvsRoot}"
54 package="releng.dali"
55 dest="${codir}"
56 tag="HEAD" />
57 </target>
david_williamsbb0fc612006-05-19 10:28:20 +000058
david_williams42f9b242006-11-27 18:45:14 +000059 <target name="wtp-R2.0-I">
60 <cvs quiet="true"
61 cvsRoot="${mapCvsRoot}"
62 package="releng-jsf"
63 dest="${codir}"
64 tag="HEAD" />
65 <cvs quiet="true"
66 cvsRoot="${mapCvsRoot}"
67 package="releng.dali"
68 dest="${codir}"
69 tag="HEAD" />
70 </target>
david_williamsbb0fc612006-05-19 10:28:20 +000071
david_williams42f9b242006-11-27 18:45:14 +000072 <target name="wtp-R2.0-R">
73 <cvs quiet="true"
74 cvsRoot="${mapCvsRoot}"
75 package="releng-jsf"
76 dest="${codir}"
77 tag="HEAD" />
78 <cvs quiet="true"
79 cvsRoot="${mapCvsRoot}"
80 package="releng.dali"
81 dest="${codir}"
82 tag="HEAD" />
83 </target>
84
85 <target name="wtp-R1.5-M">
86 <cvs quiet="true"
87 cvsRoot="${mapCvsRoot}"
88 package="${releng}"
89 dest="${codir}"
90 tag="R1_5_maintenance" />
91 </target>
92
93 <target name="wtp-patches-P">
94 <cvs quiet="true"
95 cvsRoot="${mapCvsRoot}"
96 package="${releng}"
97 dest="${codir}"
98 tag="R1_5_maintenance_patches" />
99 </target>
100
101 <target name="wtp-thirdparty-R2.0-T">
102 <cvs quiet="true"
103 cvsRoot="${mapCvsRoot}"
104 package="releng-thirdparty"
105 dest="${codir}"
106 tag="HEAD" />
107 </target>
david_williamsbb0fc612006-05-19 10:28:20 +0000108
109
david_williamsbb0fc612006-05-19 10:28:20 +0000110
111
david_williams42f9b242006-11-27 18:45:14 +0000112 <!--
113 The order of execution of these three worker targets
114 is critical, check.clean, initBuilders, and
115 then getwtpbuilder.
116 -->
117 <target name="getwtpbuilder"
118 depends="check.clean,initBuilders"
119 if="doClean">
120 <!-- This is a special property file, that contains (only) the
121 value of wtpBuilderVersion. Then, that version of the builder
122 is fetched to control the rest of the build -->
123 <property file="${codir}/${releng}/maps/build.cfg" />
124 <delete dir="${codir}/releng.wtpbuilder"
125 failonerror="false" />
126 <echo message="Version tag for ${releng.builder} is: ${wtpBuilderVersion}" />
127 <cvs quiet="true"
128 cvsRoot="${mapCvsRoot}"
129 package="${releng.builder}"
130 dest="${codir}"
131 tag="${wtpBuilderVersion}" />
132 </target>
david_williamsbb0fc612006-05-19 10:28:20 +0000133
david_williams42f9b242006-11-27 18:45:14 +0000134 <target name="check.clean">
135 <condition property="doClean">
136 <equals arg1="${checkout.wtpbuilder.clean}"
137 arg2="true" />
138 </condition>
139 </target>
david_williamsbb0fc612006-05-19 10:28:20 +0000140
david_williams42f9b242006-11-27 18:45:14 +0000141 <target name="initBuilders" if="doClean">
142 <echo message="Version tag for ${releng}: ${mapVersionTag}" />
143 <cvs quiet="true"
144 cvsRoot="${mapCvsRoot}"
145 package="${releng}"
146 dest="${codir}"
147 tag="${mapVersionTag}" />
148 </target>
david_williamsbb0fc612006-05-19 10:28:20 +0000149
150
151</project>
152