blob: a09c8f8c5e23013dee61eaa4411e9377c6031c16 [file] [log] [blame]
david_williams88cbf012009-01-12 21:53:05 +00001<?xml version="1.0"?>
2 <!--
3 ======================================================================
4 Properties that must be passed to this script: base.install.dir
5 dependencyTargets local.cache.dir dependency.properties
6 ======================================================================
7 -->
8<project
9 name="test"
10 default="get">
david_williams70fd2ab2009-11-10 03:41:01 +000011 <property
12 environment="env"/>
13 <!-- required to get proper value of dropinsFolder -->
14 <property
15 name="keyCfgFile"
16 value="${env.PROJECT_BUILDERS}/${projectname}/${env.RELENG}/maps/build.cfg"/>
17 <echo
18 level="debug"
19 message="keyCfgFile: ${keyCfgFile}"/>
20 <property
21 file="${keyCfgFile}"/>
22
david_williamsa359c932009-11-10 18:14:30 +000023 <condition
24 property="getprereq.eclipse">
25 <istrue
26 value="@prereq.eclipse@"/>
27 </condition>
28 <condition
29 property="getprereq.eclipseplatform">
30 <istrue
31 value="@prereq.eclipseplatform@"/>
32 </condition>
33 <condition
34 property="getprereq.emf">
35 <istrue
36 value="@prereq.emf@"/>
37 </condition>
38 <condition
39 property="getprereq.emfxsd">
40 <istrue
41 value="@prereq.emfxsd@"/>
42 </condition>
43 <condition
44 property="getprereq.emfvalidation">
45 <istrue
46 value="@prereq.emfvalidation@"/>
47 </condition>
48 <condition
49 property="getprereq.gef">
50 <istrue
51 value="@prereq.gef@"/>
52 </condition>
53 <condition
54 property="getprereq.dtp">
55 <istrue
56 value="@prereq.dtp@"/>
57 </condition>
58 <condition
59 property="getprereq.wst">
60 <istrue
61 value="@prereq.wst@"/>
62 </condition>
63 <condition
64 property="getprereq.jst">
65 <istrue
66 value="@prereq.jst@"/>
67 </condition>
68 <condition
69 property="getprereq.wtp">
70 <istrue
71 value="@prereq.wtp@"/>
72 </condition>
73
david_williams88cbf012009-01-12 21:53:05 +000074 <target
75 name="get">
76 <!--
77 read in this properties, just so we can make sure our
david_williamsc72d9e32009-10-16 19:07:27 +000078 requested pre-reqs are defined, which we do later with
79 statements such if="${groupId}.url"
david_williams88cbf012009-01-12 21:53:05 +000080 -->
david_williams70fd2ab2009-11-10 03:41:01 +000081 <property
82 file="${dependency.properties}"/>
david_williams72a79142009-11-10 01:07:59 +000083 <antcall
84 target="prereq.eclipse"/>
85 <antcall
david_williamseccfd4f2009-11-10 06:33:26 +000086 target="prereq.eclipseplatform"/>
david_williams88cbf012009-01-12 21:53:05 +000087 <antcall
david_williams72a79142009-11-10 01:07:59 +000088 target="prereq.emf"/>
david_williamsc72d9e32009-10-16 19:07:27 +000089 <antcall
david_williams72a79142009-11-10 01:07:59 +000090 target="prereq.emfxsd"/>
91 <antcall
92 target="prereq.emfvalidation"/>
93 <antcall
94 target="prereq.gef"/>
95 <antcall
96 target="prereq.dtp"/>
97 <antcall
98 target="prereq.wst"/>
99 <antcall
100 target="prereq.jst"/>
101 <antcall
102 target="prereq.wtp"/>
103 </target>
104 <target
105 name="prereq.eclipse"
david_williams70fd2ab2009-11-10 03:41:01 +0000106 if="getprereq.eclipse">
david_williamsc72d9e32009-10-16 19:07:27 +0000107 <antcall
108 target="getAndInstall">
109 <param
110 name="groupId"
david_williams88cbf012009-01-12 21:53:05 +0000111 value="eclipse"/>
112 </antcall>
david_williams72a79142009-11-10 01:07:59 +0000113 </target>
114 <target
david_williamseccfd4f2009-11-10 06:33:26 +0000115 name="prereq.eclipseplatform"
116 if="getprereq.eclipseplatform">
david_williams88cbf012009-01-12 21:53:05 +0000117 <antcall
118 target="getAndInstall">
119 <param
120 name="groupId"
david_williamseccfd4f2009-11-10 06:33:26 +0000121 value="eclipseplatform"/>
david_williams72a79142009-11-10 01:07:59 +0000122 </antcall>
123 </target>
124 <target
125 name="prereq.emf"
david_williams70fd2ab2009-11-10 03:41:01 +0000126 if="getprereq.emf">
david_williams72a79142009-11-10 01:07:59 +0000127 <antcall
128 target="getAndInstall">
129 <param
130 name="groupId"
131 value="emf"/>
132 </antcall>
133 </target>
134 <target
135 name="prereq.emfxsd"
david_williams70fd2ab2009-11-10 03:41:01 +0000136 if="getprereq.emfxsd">
david_williams72a79142009-11-10 01:07:59 +0000137 <antcall
138 target="getAndInstall">
139 <param
140 name="groupId"
141 value="emfxsd"/>
142 </antcall>
143 </target>
144 <target
145 name="prereq.emfvalidation"
david_williams70fd2ab2009-11-10 03:41:01 +0000146 if="getprereq.emfvalidation">
david_williams72a79142009-11-10 01:07:59 +0000147 <antcall
148 target="getAndInstall">
149 <param
150 name="groupId"
151 value="emfvalidation"/>
152 </antcall>
153 </target>
154 <target
155 name="prereq.gef"
david_williams70fd2ab2009-11-10 03:41:01 +0000156 if="getprereq.gef">
david_williams72a79142009-11-10 01:07:59 +0000157 <antcall
158 target="getAndInstall">
159 <param
160 name="groupId"
161 value="gef"/>
162 </antcall>
163 </target>
164 <target
165 name="prereq.dtp"
david_williams70fd2ab2009-11-10 03:41:01 +0000166 if="getprereq.dtp">
david_williams72a79142009-11-10 01:07:59 +0000167 <antcall
168 target="getAndInstall">
169 <param
170 name="groupId"
171 value="dtp"/>
172 </antcall>
173 </target>
174 <target
175 name="prereq.wst"
david_williams70fd2ab2009-11-10 03:41:01 +0000176 if="getprereq.wst">
david_williams72a79142009-11-10 01:07:59 +0000177 <antcall
178 target="getAndInstall">
179 <param
180 name="groupId"
181 value="wst"/>
182 </antcall>
183 </target>
184 <target
185 name="prereq.jst"
david_williams70fd2ab2009-11-10 03:41:01 +0000186 if="getprereq.jst">
david_williams72a79142009-11-10 01:07:59 +0000187 <antcall
188 target="getAndInstall">
189 <param
190 name="groupId"
191 value="jst"/>
192 </antcall>
193 </target>
194 <target
195 name="prereq.wtp"
david_williams70fd2ab2009-11-10 03:41:01 +0000196 if="getprereq.wtp">
david_williams72a79142009-11-10 01:07:59 +0000197 <antcall
198 target="getAndInstall">
199 <param
200 name="groupId"
201 value="wtp"/>
david_williams88cbf012009-01-12 21:53:05 +0000202 </antcall>
david_williams88cbf012009-01-12 21:53:05 +0000203 </target>
204 <target
205 name="getAndInstall"
206 if="${groupId}.url">
207 <ant
208 antfile="${dependencyTargets}"
209 target="checkDependency">
210 <property
211 name="groupId"
212 value="${groupId}"/>
213 </ant>
214 <ant
215 antfile="${dependencyTargets}"
216 target="installDependency">
217 <property
218 name="groupId"
219 value="${groupId}"/>
220 <property
221 name="install.destination"
222 value="${base.install.dir}"/>
223 </ant>
224 </target>
225</project>