blob: fcc0ddf8a57334a07e830ef4d2aea9e85f1a6580 [file] [log] [blame]
david_williamsd913e922006-11-13 07:24:21 +00001<project
2 name="Build specific targets and properties"
3 default="noDefault">
ndai91f5c9b2006-03-12 13:56:45 +00004
david_williamsd913e922006-11-13 07:24:21 +00005 <!-- ===================================================================== -->
6 <!-- Run a given ${target} on all elements being built -->
7 <!-- Add on <ant> task for each top level element being built. -->
8 <!-- ===================================================================== -->
9 <target name="allElements">
10 <echo message="Target: ${target} " />
11 <echo message="basedir: ${basedir}" />
12 <echo message="component: ${component}" />
13 <echo message="buildDirectory: ${buildDirectory}" />
14 <echo message="baseLocation: ${baseLocation}" />
15 <echo message="generic target: ${genericTargets}" />
16 <ant
17 antfile="${genericTargets}"
18 target="${target}">
19 <property
20 name="type"
21 value="feature" />
22 <property
23 name="id"
24 value="org.eclipse.jpa.tests" />
25 </ant>
26 </target>
ndai91f5c9b2006-03-12 13:56:45 +000027
david_williamsd913e922006-11-13 07:24:21 +000028 <!-- ===================================================================== -->
29 <!-- Targets to assemble the built elements for particular configurations -->
30 <!-- These generally call the generated assemble scripts (named in -->
31 <!-- ${assembleScriptName}) but may also add pre and post processing -->
32 <!-- Add one target for each root element and each configuration -->
33 <!-- ===================================================================== -->
ndai91f5c9b2006-03-12 13:56:45 +000034
david_williamsd913e922006-11-13 07:24:21 +000035 <target name="assemble.org.eclipse.jpa.tests">
36 <property
37 name="archiveName"
38 value="wtp-jpa-Automated-Tests-${buildLabel}.zip" />
39 <ant
40 antfile="${assembleScriptName}"
41 dir="${buildDirectory}" />
ndai91f5c9b2006-03-12 13:56:45 +000042
david_williamsd913e922006-11-13 07:24:21 +000043 </target>
ndai91f5c9b2006-03-12 13:56:45 +000044
david_williamsd913e922006-11-13 07:24:21 +000045 <target name="prePackage" />
ndai91f5c9b2006-03-12 13:56:45 +000046
47
david_williamsd913e922006-11-13 07:24:21 +000048 <target name="postPackage">
49 <property
50 name="archiveName"
51 value="wtp-jpa-Automated-Tests-${buildLabel}.zip" />
52
53 <ant
54 antfile="${wtp.builder.home}/scripts/build/buildutilities.xml"
55 target="unpackUpdateJarsAndCreateZippedPackages">
56 <property
57 name="buildDirectory"
58 value="${buildDirectory}" />
59 <property
60 name="buildLabel"
61 value="${buildLabel}" />
62 <property
63 name="archiveName"
64 value="${archiveName}" />
65 </ant>
66
67 </target>
68
69 <!-- ===================================================================== -->
70 <!-- Check out map files from correct repository -->
71 <!-- Replace values for cvsRoot, package and mapVersionTag as desired. -->
72 <!-- ===================================================================== -->
73 <target name="checkLocal">
74 <available
75 property="mapsLocal"
76 file="${buildDirectory}/maps/releng.dali" />
77 </target>
78
79 <target
80 name="getMapFiles"
81 depends="checkLocal"
82 unless="mapsLocal">
83
ndai91f5c9b2006-03-12 13:56:45 +000084 <!-- *** change the repo info -->
david_williamsd913e922006-11-13 07:24:21 +000085 <property
86 name="mapCvsRoot"
87 value=":${cvsProtocol}:${cvsUser}@${cvsServer}:${cvsRoot}" />
88 <property
89 name="mapVersionTag"
90 value="HEAD" />
91 <property
92 name="cvsPackage"
93 value="releng.dali" />
94 <echo message="${mapCvsRoot} ${mapVersionTag} " />
95 <echo message="cvsPackage = ${cvsPackage} " />
96
97 <cvs
98 cvsRoot="${mapCvsRoot}"
99 package="${cvsPackage}"
100 dest="${buildDirectory}/maps"
101 tag="${mapVersionTag}" />
ndai91f5c9b2006-03-12 13:56:45 +0000102 <!--tag the map files project-->
103 <antcall target="tagMapFiles">
david_williamsd913e922006-11-13 07:24:21 +0000104 <param
105 name="mapCvsRoot"
106 value="${mapCvsRoot}" />
ndai91f5c9b2006-03-12 13:56:45 +0000107 </antcall>
david_williamsd913e922006-11-13 07:24:21 +0000108 </target>
ndai91f5c9b2006-03-12 13:56:45 +0000109
david_williamsd913e922006-11-13 07:24:21 +0000110 <target
111 name="tagMapFiles"
112 if="tagMaps">
113 <cvs
114 cvsRoot="${mapCvsRoot}"
115 dest="${buildDirectory}/maps"
116 command="tag v${buildType}${timestamp}" />
117 </target>
ndai91f5c9b2006-03-12 13:56:45 +0000118
david_williamsd913e922006-11-13 07:24:21 +0000119 <!-- ===================================================================== -->
120 <!-- Steps to do before setup -->
121 <!-- ===================================================================== -->
122 <target name="preSetup"></target>
ndai91f5c9b2006-03-12 13:56:45 +0000123
david_williamsd913e922006-11-13 07:24:21 +0000124 <!-- ===================================================================== -->
125 <!-- Steps to do after setup but before starting the build proper -->
126 <!-- ===================================================================== -->
127 <target name="postSetup">
128 <dirname
129 file="${ant.file}"
130 property="component.dir" />
131 <echo message="ant.file: ${ant.file}" />
132 <echo message="component.dir: ${component.dir}" />
ndai91f5c9b2006-03-12 13:56:45 +0000133
david_williamsd913e922006-11-13 07:24:21 +0000134 <ant
135 antfile="${component.dir}/dependency.xml"
136 target="get">
137 <property
138 name="dependency.properties"
139 value="${buildDirectory}/maps/releng/maps/dependencies.properties" />
140 <property
141 name="base.install.dir"
142 value="${buildRoot}" />
143 </ant>
144 <!--fetch the additional pieces to build tests -->
145 <property
146 name="featureOnly"
147 value="false" />
148 <property
149 name="featureAndPlugins"
150 value="true" />
151 <property
152 name="featuresRecursively"
153 value="true" />
ndai91f5c9b2006-03-12 13:56:45 +0000154
david_williamsd913e922006-11-13 07:24:21 +0000155 <ant
156 antfile="${genericTargets}"
157 dir="${pde.build.scripts}"
158 target="fetchElement">
159 <property
160 name="type"
161 value="feature" />
162 <property
163 name="id"
164 value="org.eclipse.jpa.tests" />
165 </ant>
ndai91f5c9b2006-03-12 13:56:45 +0000166
david_williamsd913e922006-11-13 07:24:21 +0000167 <ant
168 antfile="${genericTargets}"
169 dir="${pde.build.scripts}"
170 target="fetchElement">
171 <property
172 name="type"
173 value="feature" />
174 <property
175 name="id"
176 value="org.eclipse.wst" />
177 </ant>
178 <ant
179 antfile="${genericTargets}"
180 dir="${pde.build.scripts}"
181 target="fetchElement">
182 <property
183 name="type"
184 value="feature" />
185 <property
186 name="id"
187 value="org.eclipse.jst" />
188 </ant>
189 </target>
ndai91f5c9b2006-03-12 13:56:45 +0000190
david_williamsd913e922006-11-13 07:24:21 +0000191 <!-- ===================================================================== -->
192 <!-- Steps to do before fetching the build elements -->
193 <!-- ===================================================================== -->
194 <target name="preFetch"></target>
ndai91f5c9b2006-03-12 13:56:45 +0000195
david_williamsd913e922006-11-13 07:24:21 +0000196 <!-- ===================================================================== -->
197 <!-- Steps to do after fetching the build elements -->
198 <!-- ===================================================================== -->
199 <target name="postFetch"></target>
200
201 <!-- ===================================================================== -->
202 <!-- Steps to do before generating the build scripts. -->
203 <!-- ===================================================================== -->
204 <target name="preGenerate"></target>
205
206 <!-- ===================================================================== -->
207 <!-- Steps to do after generating the build scripts. -->
208 <!-- ===================================================================== -->
209 <target name="postGenerate"></target>
ndai91f5c9b2006-03-12 13:56:45 +0000210
211
david_williamsd913e922006-11-13 07:24:21 +0000212 <!-- ===================================================================== -->
213 <!-- Steps to do before running the build.xmls for the elements being built. -->
214 <!-- ===================================================================== -->
215 <target name="preProcess"></target>
ndai91f5c9b2006-03-12 13:56:45 +0000216
david_williamsd913e922006-11-13 07:24:21 +0000217 <!-- ===================================================================== -->
218 <!-- Steps to do after running the build.xmls for the elements being built. -->
219 <!-- ===================================================================== -->
220 <target name="postProcess"></target>
ndai91f5c9b2006-03-12 13:56:45 +0000221
222
david_williamsd913e922006-11-13 07:24:21 +0000223 <!-- ===================================================================== -->
224 <!-- Steps to do before running assemble. -->
225 <!-- ===================================================================== -->
226 <target name="preAssemble"></target>
ndai91f5c9b2006-03-12 13:56:45 +0000227
david_williamsd913e922006-11-13 07:24:21 +0000228 <!-- ===================================================================== -->
229 <!-- Steps to do after running assemble. -->
230 <!-- ===================================================================== -->
231 <target name="postAssemble"></target>
ndai91f5c9b2006-03-12 13:56:45 +0000232
david_williamsd913e922006-11-13 07:24:21 +0000233 <!-- ===================================================================== -->
234 <!-- Steps to do after the build is done. -->
235 <!-- ===================================================================== -->
236 <target name="postBuild"></target>
ndai91f5c9b2006-03-12 13:56:45 +0000237
david_williams518a8692006-04-29 19:34:27 +0000238
david_williamsd913e922006-11-13 07:24:21 +0000239 <!-- ===================================================================== -->
240 <!-- Steps to test the build results -->
241 <!-- ===================================================================== -->
242 <target
243 name="test"
244 unless="dontRunTests">
245 <property
246 name="eclipseAutomatedTestHome"
247 value="${buildDirectory}/plugins/org.eclipse.dali.utility.tests" />
ndai91f5c9b2006-03-12 13:56:45 +0000248
david_williamsd913e922006-11-13 07:24:21 +0000249 <echo message="Setting up tests in ${eclipseAutomatedTestHome}" />
ndai91f5c9b2006-03-12 13:56:45 +0000250
david_williamsd913e922006-11-13 07:24:21 +0000251 <copy
252 file="${buildDirectory}/${buildLabel}/wtp-jpa-${buildLabel}.zip"
253 tofile="${eclipseAutomatedTestHome}/eclipse-SDK-wtp-jpa-${buildLabel}.zip" />
254 <copy
255 file="${buildDirectory}/${buildLabel}/wtp-jpa-Automated-Tests-${buildLabel}.zip"
256 tofile="${eclipseAutomatedTestHome}/eclipse-junit-tests-wtp-jpa-${buildLabel}.zip" />
ndai91f5c9b2006-03-12 13:56:45 +0000257
david_williamsd913e922006-11-13 07:24:21 +0000258 <ant
259 antfile="${eclipseAutomatedTestHome}/test.xml"
260 target="run"
261 dir="${eclipseAutomatedTestHome}">
262 <property
263 name="os"
264 value="${baseos}" />
265 <property
266 name="ws"
267 value="${basews}" />
268 <property
269 name="arch"
270 value="${basearch}" />
271 <property
272 name="eclipse-home"
273 value="${baseLocation}" />
274 </ant>
ndai91f5c9b2006-03-12 13:56:45 +0000275
david_williamsd913e922006-11-13 07:24:21 +0000276 </target>
ndai91f5c9b2006-03-12 13:56:45 +0000277
david_williamsd913e922006-11-13 07:24:21 +0000278 <!-- ===================================================================== -->
279 <!-- Steps to do to publish the build results -->
280 <!-- ===================================================================== -->
281 <target name="publish"></target>
282
283 <!-- ===================================================================== -->
284 <!-- Default target -->
285 <!-- ===================================================================== -->
286 <target name="noDefault">
287 <echo message="You must specify a target when invoking this file" />
288 </target>
ndai91f5c9b2006-03-12 13:56:45 +0000289
290</project>