blob: 939435c87489568bd83f6ce989920e0a6c39e351 [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>
99
david_williams0ef9b0c2006-12-04 23:46:40 +0000100 <target name="patches-R1.5-P">
david_williams42f9b242006-11-27 18:45:14 +0000101 <cvs quiet="true"
102 cvsRoot="${mapCvsRoot}"
103 package="${releng}"
104 dest="${codir}"
105 tag="R1_5_maintenance_patches" />
106 </target>
107
108 <target name="wtp-thirdparty-R2.0-T">
109 <cvs quiet="true"
110 cvsRoot="${mapCvsRoot}"
111 package="releng-thirdparty"
112 dest="${codir}"
113 tag="HEAD" />
114 </target>
david_williamsbb0fc612006-05-19 10:28:20 +0000115
116
david_williamsbb0fc612006-05-19 10:28:20 +0000117
118
david_williams42f9b242006-11-27 18:45:14 +0000119 <!--
120 The order of execution of these three worker targets
121 is critical, check.clean, initBuilders, and
122 then getwtpbuilder.
123 -->
124 <target name="getwtpbuilder"
125 depends="check.clean,initBuilders"
126 if="doClean">
127 <!-- This is a special property file, that contains (only) the
128 value of wtpBuilderVersion. Then, that version of the builder
129 is fetched to control the rest of the build -->
130 <property file="${codir}/${releng}/maps/build.cfg" />
131 <delete dir="${codir}/releng.wtpbuilder"
132 failonerror="false" />
133 <echo message="Version tag for ${releng.builder} is: ${wtpBuilderVersion}" />
134 <cvs quiet="true"
135 cvsRoot="${mapCvsRoot}"
136 package="${releng.builder}"
137 dest="${codir}"
138 tag="${wtpBuilderVersion}" />
139 </target>
david_williamsbb0fc612006-05-19 10:28:20 +0000140
david_williams42f9b242006-11-27 18:45:14 +0000141 <target name="check.clean">
david_williams2f3f3c22007-02-17 23:56:37 +0000142 <echo message="checkout.wtpbuilder.clean: ${checkout.wtpbuilder.clean}" />
david_williams42f9b242006-11-27 18:45:14 +0000143 <condition property="doClean">
144 <equals arg1="${checkout.wtpbuilder.clean}"
david_williams2f3f3c22007-02-17 23:56:37 +0000145 arg2="true"
146 trim="true"
147 casesensitive="false" />
david_williams42f9b242006-11-27 18:45:14 +0000148 </condition>
149 </target>
david_williamsbb0fc612006-05-19 10:28:20 +0000150
david_williams42f9b242006-11-27 18:45:14 +0000151 <target name="initBuilders" if="doClean">
152 <echo message="Version tag for ${releng}: ${mapVersionTag}" />
153 <cvs quiet="true"
154 cvsRoot="${mapCvsRoot}"
155 package="${releng}"
156 dest="${codir}"
157 tag="${mapVersionTag}" />
158 </target>
david_williamsbb0fc612006-05-19 10:28:20 +0000159
160
161</project>
162