blob: 8a2867475c1a96c69367c240dc378a629d84ec13 [file] [log] [blame]
david_williams0ecd8ec2009-11-09 04:16:21 +00001<?xml version="1.0"?>
david_williams68fbea62010-09-27 02:22:31 +00002<!--
3 ======================================================================
4 Properties that must be passed to this script: base.install.dir
5 dependencyTargets local.cache.dir dependency.properties
6
7 ======================================================================
8-->
david_williams0ecd8ec2009-11-09 04:16:21 +00009<project
10 name="test"
david_williams68fbea62010-09-27 02:22:31 +000011 default="get">
david_williams038bea72011-02-14 04:10:11 +000012 <property environment="env"/>
david_williams9e7f5842011-03-06 03:32:03 +000013 <!-- required to get proper value of branch specific values -->
david_williams840e21e2009-11-10 04:06:15 +000014 <property
15 name="keyCfgFile"
16 value="${env.PROJECT_BUILDERS}/${projectname}/${env.RELENG}/maps/build.cfg"/>
17 <echo
david_williams14cadd12011-03-23 06:43:39 +000018 level="debug"
david_williams840e21e2009-11-10 04:06:15 +000019 message="keyCfgFile: ${keyCfgFile}"/>
david_williams038bea72011-02-14 04:10:11 +000020 <fail message="Required property file does not exist: ${keyCfgFile}">
david_williamsb75b9792010-09-27 02:58:32 +000021 <condition>
22 <not>
david_williams038bea72011-02-14 04:10:11 +000023 <available file="${keyCfgFile}"/>
david_williamsb75b9792010-09-27 02:58:32 +000024 </not>
25 </condition>
26 </fail>
david_williams038bea72011-02-14 04:10:11 +000027 <property file="${keyCfgFile}"/>
david_williamsef62fc42011-03-18 02:33:39 +000028
29 <property
30 name="dependencyTargets"
31 value="${wtp.builder.home}/scripts/dependency/build.xml"/>
david_williams038bea72011-02-14 04:10:11 +000032 <target name="get">
david_williams68fbea62010-09-27 02:22:31 +000033
david_williams4a08fae2010-09-27 08:17:00 +000034 <property
35 name="installWorkingDirectory"
36 value="${buildDirectory}"/>
david_williams038bea72011-02-14 04:10:11 +000037 <fail message="Required property file does not exist: ${dependency.properties}">
david_williams35584d32010-09-27 04:25:03 +000038 <condition>
39 <not>
david_williams038bea72011-02-14 04:10:11 +000040 <available file="${dependency.properties}"/>
david_williams35584d32010-09-27 04:25:03 +000041 </not>
42 </condition>
43 </fail>
david_williams5e5f04f2011-03-07 20:07:42 +000044 <fail message="Required property file does not exist: ${tobeinstalled.properties}">
45 <condition>
46 <not>
47 <available file="${tobeinstalled.properties}"/>
48 </not>
49 </condition>
david_williamsba00a342011-03-12 05:11:19 +000050 </fail>
david_williams038bea72011-02-14 04:10:11 +000051 <property file="${dependency.properties}"/>
52 <property file="${tobeinstalled.properties}"/>
david_williamsb75b9792010-09-27 02:58:32 +000053
david_williams68fbea62010-09-27 02:22:31 +000054
david_williams14cadd12011-03-23 06:43:39 +000055 <echo level="debug" message="pde.builder.path: ${pde.builder.path}"/>
56 <echo level="debug" message="eclipsebuilder.id: ${eclipsebuilder.id}"/>
david_williamsef62fc42011-03-18 02:33:39 +000057
58 <property
59 name="dependencyTargets"
60 value="${wtp.builder.home}/scripts/dependency/build.xml"/>
david_williams14cadd12011-03-23 06:43:39 +000061 <echo level="debug" message="dependencyTargets: ${dependencyTargets}"/>
62 <echo level="debug" message="base.install.dir: ${base.install.dir}"/>
63 <echo level="debug" message="tobeinstalled.properties: ${tobeinstalled.properties}"/>
64 <echo level="debug" message="installWorkingDirectory: ${installWorkingDirectory}"/>
david_williams35584d32010-09-27 04:25:03 +000065
david_williams038bea72011-02-14 04:10:11 +000066 <antcall target="prereq.eclipse"/>
david_williamsb58d7aa2011-02-15 02:49:00 +000067 <antcall target="prereq.e4x"/>
david_williams038bea72011-02-14 04:10:11 +000068 <antcall target="prereq.eclipseplatform"/>
69 <antcall target="prereq.eclipsetestframework"/>
70 <antcall target="prereq.emf"/>
71 <antcall target="prereq.emfxsd"/>
72 <antcall target="prereq.emfandxsd"/>
david_williams038bea72011-02-14 04:10:11 +000073 <antcall target="prereq.gef"/>
74 <antcall target="prereq.dtp"/>
75 <antcall target="prereq.wst"/>
76 <antcall target="prereq.jst"/>
candersond090e442011-07-28 19:47:09 +000077 <antcall target="prereq.emfvalidation"/>
78 <antcall target="prereq.emftransaction"/>
79 <antcall target="prereq.graphiti"/>
david_williams038bea72011-02-14 04:10:11 +000080 <antcall target="prereq.wtp"/>
81 <antcall target="prereq.wtptests"/>
82 <antcall target="prereq.dltk"/>
83 <antcall target="prereq.testlibraries"/>
84 <antcall target="prereq.wtpandtests"/>
tle304d1e22011-09-28 22:09:52 +000085 <antcall target="prereq.dalitests"/>
david_williams72a79142009-11-10 01:07:59 +000086 </target>
david_williams68fbea62010-09-27 02:22:31 +000087
Carl Anderson3cf43402012-08-15 12:27:17 -040088<!-- Note: this target is called from "install base builder" routines, not "install prereqs" like most targets here -->
david_williamsef62fc42011-03-18 02:33:39 +000089 <target name="prereq.eclipsebuilder">
david_williams14cadd12011-03-23 06:43:39 +000090 <echo message="eclipse builder being installed to: ${eclipse.builder.base.install.dir}"/>
david_williamsef62fc42011-03-18 02:33:39 +000091 <mkdir dir="${eclipse.builder.base.install.dir}"/>
92 <antcall target="getAndInstall">
93 <param
94 name="groupId"
95 value="eclipsebuilder"/>
96 <param
97 name="base.install.dir"
98 value="${eclipse.builder.base.install.dir}"/>
99 </antcall>
100 </target>
Carl Anderson3cf43402012-08-15 12:27:17 -0400101 <!-- Note: this target is called from "install base builder" routines, not "install prereqs" like most targets here -->
102 <target name="prereq.egit">
103 <echo message="EGit being installed to: ${eclipse.builder.base.install.dir}"/>
104 <antcall target="getAndInstallRepoFromURL">
105 <param
106 name="groupId"
107 value="egit"/>
108 <param
109 name="base.install.dir"
110 value="${eclipse.builder.base.install.dir}"/>
111 </antcall>
112 </target>
113 <!-- Note: this target is called from "install base builder" routines, not "install prereqs" like most targets here -->
114 <target name="prereq.gitfetchfactory">
115 <echo message="Git fetch factory being installed to: ${eclipse.builder.base.install.dir}"/>
116 <antcall target="getAndInstallRepoFromURL">
117 <param
118 name="groupId"
119 value="gitFetchFactory"/>
120 <param
121 name="base.install.dir"
122 value="${eclipse.builder.base.install.dir}"/>
123 </antcall>
124 </target>
125 <!-- Note: this target is called from "install base builder" routines, not "install prereqs" like most targets here -->
david_williamsef62fc42011-03-18 02:33:39 +0000126 <target name="prereq.wtpbuildtools">
david_williams14cadd12011-03-23 06:43:39 +0000127 <echo level="debug" message="wtp build tools installing to: ${pde.builder.path}"/>
david_williamsef62fc42011-03-18 02:33:39 +0000128 <!-- TODO could check if ${eclipse.builder.base.install.dir} exists, since would be error if not -->
129
130 <antcall target="getAndInstallRepo">
131 <param
132 name="groupId"
133 value="wtpBuildTools"/>
134 <param
135 name="base.install.dir"
136 value="${eclipse.builder.base.install.dir}"/>
137 </antcall>
138 </target>
139
david_williams72a79142009-11-10 01:07:59 +0000140 <target
141 name="prereq.eclipse"
david_williams840e21e2009-11-10 04:06:15 +0000142 if="getprereq.eclipse">
david_williams038bea72011-02-14 04:10:11 +0000143 <antcall target="getAndInstall">
david_williams0ecd8ec2009-11-09 04:16:21 +0000144 <param
145 name="groupId"
146 value="eclipse"/>
147 </antcall>
david_williams72a79142009-11-10 01:07:59 +0000148 </target>
149 <target
david_williamsb58d7aa2011-02-15 02:49:00 +0000150 name="prereq.e4x"
151 if="getprereq.e4x">
david_williams038bea72011-02-14 04:10:11 +0000152 <antcall target="getAndInstall">
david_williams6504f1a2011-02-13 04:59:39 +0000153 <param
154 name="groupId"
david_williamsb58d7aa2011-02-15 02:49:00 +0000155 value="e4x"/>
david_williams6504f1a2011-02-13 04:59:39 +0000156 </antcall>
david_williams038bea72011-02-14 04:10:11 +0000157 </target>
david_williams6504f1a2011-02-13 04:59:39 +0000158 <target
david_williams1641c472009-11-10 06:43:29 +0000159 name="prereq.eclipseplatform"
160 if="getprereq.eclipseplatform">
david_williams038bea72011-02-14 04:10:11 +0000161 <!-- first task here is the normal one, but it is skipped if featues-to-installed is defined -->
162 <antcall target="getAndInstall">
david_williams0ecd8ec2009-11-09 04:16:21 +0000163 <param
164 name="groupId"
david_williams1641c472009-11-10 06:43:29 +0000165 value="eclipseplatform"/>
david_williams72a79142009-11-10 01:07:59 +0000166 </antcall>
david_williams038bea72011-02-14 04:10:11 +0000167 <antcall target="getAndInstallFramework">
168 <param
169 name="groupId"
170 value="eclipseplatform"/>
171 </antcall>
172
david_williams72a79142009-11-10 01:07:59 +0000173 </target>
david_williams8424b552010-09-19 22:20:58 +0000174 <target
175 name="prereq.eclipsetestframework"
176 if="getprereq.eclipsetestframework">
david_williams038bea72011-02-14 04:10:11 +0000177 <antcall target="getAndInstallFramework">
david_williams8424b552010-09-19 22:20:58 +0000178 <param
179 name="groupId"
180 value="eclipseTestFramework"/>
181 </antcall>
182 </target>
david_williams72a79142009-11-10 01:07:59 +0000183 <target
184 name="prereq.emf"
david_williams840e21e2009-11-10 04:06:15 +0000185 if="getprereq.emf">
david_williams038bea72011-02-14 04:10:11 +0000186 <antcall target="getAndInstallFramework">
david_williams72a79142009-11-10 01:07:59 +0000187 <param
188 name="groupId"
189 value="emf"/>
190 </antcall>
191 </target>
192 <target
193 name="prereq.emfxsd"
david_williams840e21e2009-11-10 04:06:15 +0000194 if="getprereq.emfxsd">
david_williams038bea72011-02-14 04:10:11 +0000195 <antcall target="getAndInstallFramework">
david_williams72a79142009-11-10 01:07:59 +0000196 <param
197 name="groupId"
198 value="emfxsd"/>
199 </antcall>
200 </target>
201 <target
david_williams108bf232010-09-27 14:34:02 +0000202 name="prereq.emfandxsd"
203 if="getprereq.emfandxsd">
david_williams038bea72011-02-14 04:10:11 +0000204 <antcall target="getAndInstallFramework">
david_williams108bf232010-09-27 14:34:02 +0000205 <param
206 name="groupId"
207 value="emfandxsd"/>
208 </antcall>
209 </target>
210 <target
david_williams72a79142009-11-10 01:07:59 +0000211 name="prereq.emfvalidation"
david_williams840e21e2009-11-10 04:06:15 +0000212 if="getprereq.emfvalidation">
canderson5b62da92011-07-27 06:32:51 +0000213 <antcall target="getAndInstallFramework">
david_williams72a79142009-11-10 01:07:59 +0000214 <param
215 name="groupId"
216 value="emfvalidation"/>
217 </antcall>
218 </target>
219 <target
candersonfee8d0b2011-07-27 16:06:37 +0000220 name="prereq.emftransaction"
221 if="getprereq.emftransaction">
222 <antcall target="getAndInstallFramework">
223 <param
224 name="groupId"
225 value="emftransaction"/>
226 </antcall>
227 </target>
228 <target
tle082f90e2011-03-04 22:00:58 +0000229 name="prereq.graphiti"
230 if="getprereq.graphiti">
Carl Andersonf4f8f4b2012-10-10 18:12:05 -0400231 <antcall target="getAndInstallRepoFromURL">
tle082f90e2011-03-04 22:00:58 +0000232 <param
233 name="groupId"
234 value="graphiti"/>
235 </antcall>
236 </target>
237 <target
david_williams72a79142009-11-10 01:07:59 +0000238 name="prereq.gef"
david_williams840e21e2009-11-10 04:06:15 +0000239 if="getprereq.gef">
david_williams038bea72011-02-14 04:10:11 +0000240 <antcall target="getAndInstallFramework">
david_williams72a79142009-11-10 01:07:59 +0000241 <param
242 name="groupId"
243 value="gef"/>
244 </antcall>
245 </target>
246 <target
247 name="prereq.dtp"
david_williams840e21e2009-11-10 04:06:15 +0000248 if="getprereq.dtp">
david_williams038bea72011-02-14 04:10:11 +0000249 <antcall target="getAndInstallFramework">
david_williams72a79142009-11-10 01:07:59 +0000250 <param
251 name="groupId"
252 value="dtp"/>
253 </antcall>
254 </target>
255 <target
256 name="prereq.wst"
david_williams840e21e2009-11-10 04:06:15 +0000257 if="getprereq.wst">
david_williams038bea72011-02-14 04:10:11 +0000258 <antcall target="getAndInstallDropins">
david_williams72a79142009-11-10 01:07:59 +0000259 <param
260 name="groupId"
261 value="wst"/>
262 </antcall>
263 </target>
264 <target
265 name="prereq.jst"
david_williams840e21e2009-11-10 04:06:15 +0000266 if="getprereq.jst">
david_williams038bea72011-02-14 04:10:11 +0000267 <antcall target="getAndInstallDropins">
david_williams72a79142009-11-10 01:07:59 +0000268 <param
269 name="groupId"
270 value="jst"/>
271 </antcall>
272 </target>
273 <target
274 name="prereq.wtp"
david_williams840e21e2009-11-10 04:06:15 +0000275 if="getprereq.wtp">
tlec00a66d2011-10-13 22:02:14 +0000276 <antcall target="getAndInstallFramework">
david_williams72a79142009-11-10 01:07:59 +0000277 <param
278 name="groupId"
279 value="wtp"/>
david_williams0ecd8ec2009-11-09 04:16:21 +0000280 </antcall>
david_williams0ecd8ec2009-11-09 04:16:21 +0000281 </target>
282 <target
david_williamsdaf0efe2010-10-01 17:29:06 +0000283 name="prereq.wtptests"
284 if="getprereq.wtptests">
david_williams0c324042011-05-13 14:26:39 +0000285 <antcall target="getAndInstallFramework">
david_williams28308c92010-09-27 05:24:23 +0000286 <param
287 name="groupId"
david_williamsd528cfb2010-10-01 18:12:10 +0000288 value="wtptests"/>
david_williams28308c92010-09-27 05:24:23 +0000289 </antcall>
290 </target>
david_williams038bea72011-02-14 04:10:11 +0000291 <target
292 name="prereq.wtpandtests"
293 if="getprereq.wtpandtests">
294 <antcall target="getAndInstallRepo">
295 <param
296 name="groupId"
297 value="wtpandtests"/>
298 </antcall>
299 </target>
david_williams28308c92010-09-27 05:24:23 +0000300 <target
david_williams0fadc4e2010-03-01 04:45:19 +0000301 name="prereq.dltk"
302 if="getprereq.dltk">
david_williams038bea72011-02-14 04:10:11 +0000303 <antcall target="getAndInstallDropins">
david_williams0fadc4e2010-03-01 04:45:19 +0000304 <param
305 name="groupId"
306 value="dltk"/>
307 </antcall>
308 </target>
tle304d1e22011-09-28 22:09:52 +0000309 <target
310 name="prereq.dalitests"
311 if="getprereq.dalitests">
312 <antcall target="getAndInstallFramework">
313 <param
314 name="groupId"
315 value="dalitests"/>
316 </antcall>
317 </target>
david_williams68fbea62010-09-27 02:22:31 +0000318
david_williams35584d32010-09-27 04:25:03 +0000319
320
321 <target
322 name="prereq.testlibraries"
323 if="getprereq.testlibraries">
david_williams038bea72011-02-14 04:10:11 +0000324 <antcall target="getAndInstall">
david_williams35584d32010-09-27 04:25:03 +0000325 <param
326 name="groupId"
327 value="tomcat.5"/>
328 </antcall>
david_williams038bea72011-02-14 04:10:11 +0000329 <antcall target="getAndInstall">
david_williams35584d32010-09-27 04:25:03 +0000330 <param
331 name="groupId"
332 value="jonas.4"/>
333 </antcall>
david_williams038bea72011-02-14 04:10:11 +0000334 <antcall target="getAndInstall">
david_williams35584d32010-09-27 04:25:03 +0000335 <param
336 name="groupId"
337 value="oagis.release"/>
338 </antcall>
david_williams038bea72011-02-14 04:10:11 +0000339 <antcall target="getAndInstall">
david_williams35584d32010-09-27 04:25:03 +0000340 <param
341 name="groupId"
342 value="oagis.wsdl"/>
343 </antcall>
david_williams038bea72011-02-14 04:10:11 +0000344 <antcall target="getAndInstall">
david_williams35584d32010-09-27 04:25:03 +0000345 <param
346 name="groupId"
347 value="jsf.1_1"/>
348 </antcall>
david_williams038bea72011-02-14 04:10:11 +0000349 <antcall target="getAndInstall">
david_williams35584d32010-09-27 04:25:03 +0000350 <param
351 name="groupId"
tle108599f2011-03-09 02:29:54 +0000352 value="emftransaction"/>
353 </antcall>
354 <antcall target="getAndInstall">
355 <param
356 name="groupId"
357 value="emfvalidation"/>
358 </antcall>
tle7f74ecb2012-05-23 16:33:34 +0000359<!--
tle108599f2011-03-09 02:29:54 +0000360 <antcall target="getAndInstall">
361 <param
362 name="groupId"
363 value="graphiti"/>
364 </antcall>
tle7f74ecb2012-05-23 16:33:34 +0000365-->
tle108599f2011-03-09 02:29:54 +0000366 <antcall target="getAndInstall">
367 <param
368 name="groupId"
tle88fa29e2011-11-29 21:57:09 +0000369 value="eclipselink"/>
david_williams35584d32010-09-27 04:25:03 +0000370 </antcall>
371 </target>
372
373
374
375
376
377
378
379
david_williams0fadc4e2010-03-01 04:45:19 +0000380 <target
david_williams0ecd8ec2009-11-09 04:16:21 +0000381 name="getAndInstall"
david_williams038bea72011-02-14 04:10:11 +0000382 if="${groupId}.url"
383 unless="${groupId}.tobeinstalledfeaturegroups">
david_williams0ecd8ec2009-11-09 04:16:21 +0000384 <ant
385 antfile="${dependencyTargets}"
386 target="checkDependency">
387 <property
388 name="groupId"
389 value="${groupId}"/>
390 </ant>
391 <ant
392 antfile="${dependencyTargets}"
393 target="installDependency">
394 <property
395 name="groupId"
396 value="${groupId}"/>
397 <property
398 name="install.destination"
399 value="${base.install.dir}"/>
400 </ant>
401 </target>
david_williams8424b552010-09-19 22:20:58 +0000402 <target
403 name="getAndInstallRepo"
404 if="${groupId}.url">
405 <ant
406 antfile="${dependencyTargets}"
407 target="checkDependency">
408 <property
409 name="groupId"
410 value="${groupId}"/>
411 </ant>
412 <ant
413 antfile="${dependencyTargets}"
414 target="installRepo">
415 <property
416 name="groupId"
417 value="${groupId}"/>
418 <property
419 name="install.destination"
420 value="${base.install.dir}"/>
421 </ant>
422 </target>
Carl Anderson3cf43402012-08-15 12:27:17 -0400423 <target
424 name="getAndInstallRepoFromURL"
425 if="${groupId}.url">
426 <ant
427 antfile="${dependencyTargets}"
428 target="checkDependency">
429 <property
430 name="groupId"
431 value="${groupId}"/>
432 </ant>
433 <ant
434 antfile="${dependencyTargets}"
435 target="installRepoFromURL">
436 <property
437 name="groupId"
438 value="${groupId}"/>
439 <property
440 name="install.destination"
441 value="${base.install.dir}"/>
442 </ant>
443 </target>
david_williams9e7f5842011-03-06 03:32:03 +0000444 <!-- use getAndInstallFramework to decide based on whether or not 'tobeinstalledfeaturegroups' exists -->
david_williams90eccfd2010-09-27 00:44:32 +0000445 <target
446 name="getAndInstallFramework"
447 depends="tryRepo"
448 unless="isRepo">
david_williams038bea72011-02-14 04:10:11 +0000449 <antcall target="getAndInstallDropins">
david_williams90eccfd2010-09-27 00:44:32 +0000450 <param
451 name="groupId"
452 value="${groupId}"/>
453 </antcall>
454 </target>
455 <target
456 name="tryRepo"
457 depends="checkIfRepo"
458 if="isRepo">
david_williams038bea72011-02-14 04:10:11 +0000459 <antcall target="getAndInstallRepo">
david_williams90eccfd2010-09-27 00:44:32 +0000460 <param
461 name="groupId"
462 value="${groupId}"/>
463 </antcall>
464 </target>
david_williams038bea72011-02-14 04:10:11 +0000465 <target name="checkIfRepo">
466 <condition property="isRepo">
467 <isset property="${groupId}.tobeinstalledfeaturegroups"/>
david_williams90eccfd2010-09-27 00:44:32 +0000468 </condition>
469 </target>
470
david_williamsa28eee52010-10-01 07:24:00 +0000471
david_williams35584d32010-09-27 04:25:03 +0000472 <target
473 name="getAndInstallDropins"
474 if="${groupId}.url">
475 <ant
476 antfile="${dependencyTargets}"
477 target="checkDependency">
478 <property
479 name="groupId"
480 value="${groupId}"/>
481 </ant>
david_williamsa2e8aec2010-10-01 07:45:25 +0000482
david_williams9e7f5842011-03-06 03:32:03 +0000483 <!-- note: changed to put prereq into specific subfolder of dropins, to avoid
484 possibility of "overwriting" one jar with another
485
486 <property
487 name="install.destination"
488 value="${base.install.dir}${dropinsFolder}"/>
489 -->
david_williams14cadd12011-03-23 06:43:39 +0000490 <echo level="debug" message="dropinsFolder: ${dropinsFolder} "/>
david_williamsa2e8aec2010-10-01 07:45:25 +0000491 <condition
492 property="install.destination"
david_williams6f755022010-10-01 08:30:45 +0000493 value="${base.install.dir}${dropinsFolder}/${groupId}"
494 else="${base.install.dir}">
david_williams038bea72011-02-14 04:10:11 +0000495 <isset property="dropinsFolder"/>
david_williamsa2e8aec2010-10-01 07:45:25 +0000496 </condition>
david_williams35584d32010-09-27 04:25:03 +0000497 <ant
498 antfile="${dependencyTargets}"
499 target="installDependency">
500 <property
501 name="groupId"
david_williams455f6152010-10-02 05:52:19 +0000502 value="${groupId}"/>
503 <property
504 name="install.destination"
505 value="${install.destination}"/>
david_williamsa28eee52010-10-01 07:24:00 +0000506
david_williamsa28eee52010-10-01 07:24:00 +0000507
david_williamsa28eee52010-10-01 07:24:00 +0000508
david_williams35584d32010-09-27 04:25:03 +0000509 </ant>
510 </target>
511
david_williams68fbea62010-09-27 02:22:31 +0000512</project>
513