blob: eeb587024842f0bc06a056658ec2546ad7545066 [file] [log] [blame]
david_williams60f2e6f2008-10-28 04:14:12 +00001<?xml version="1.0"?>
david_williams4bf50692008-11-02 07:27:16 +00002 <!--
3 ======================================================================
4 Properties that must be passed to this script: base.install.dir
5 dependencyTargets local.cache.dir dependency.properties
6 ======================================================================
7 -->
david_williams60f2e6f2008-10-28 04:14:12 +00008<project
9 name="test"
10 default="get">
david_williams0fadc4e2010-03-01 04:45:19 +000011 <property
david_williams1641c472009-11-10 06:43:29 +000012 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}"/>
david_williams0fadc4e2010-03-01 04:45:19 +000022 <condition
23 property="getprereq.eclipse">
24 <istrue
25 value="true"/>
26 </condition>
27 <condition
28 property="getprereq.eclipseplatform">
29 <istrue
30 value="false"/>
31 </condition>
32 <condition
33 property="getprereq.emf">
34 <istrue
35 value="true"/>
36 </condition>
37 <condition
38 property="getprereq.emfxsd">
39 <istrue
40 value="true"/>
41 </condition>
42 <condition
43 property="getprereq.emfvalidation">
44 <istrue
45 value="false"/>
46 </condition>
47 <condition
48 property="getprereq.gef">
49 <istrue
50 value="true"/>
51 </condition>
52 <condition
53 property="getprereq.dtp">
54 <istrue
55 value="false"/>
56 </condition>
57 <condition
58 property="getprereq.wst">
59 <istrue
60 value="true"/>
61 </condition>
62 <condition
63 property="getprereq.jst">
64 <istrue
65 value="false"/>
66 </condition>
67 <condition
68 property="getprereq.wtp">
69 <istrue
70 value="false"/>
71 </condition>
72 <condition
73 property="getprereq.dltk">
74 <istrue
75 value="false"/>
76 </condition>
david_williams4bf50692008-11-02 07:27:16 +000077 <target
78 name="get">
79 <!--
80 read in this properties, just so we can make sure our
david_williams1641c472009-11-10 06:43:29 +000081 requested pre-reqs are defined, which we do later with
82 statements such if="${groupId}.url"
david_williams4bf50692008-11-02 07:27:16 +000083 -->
84 <property
85 file="${dependency.properties}"/>
86 <antcall
david_williams1641c472009-11-10 06:43:29 +000087 target="prereq.eclipse"/>
88 <antcall
89 target="prereq.eclipseplatform"/>
90 <antcall
91 target="prereq.emf"/>
92 <antcall
93 target="prereq.emfxsd"/>
94 <antcall
95 target="prereq.emfvalidation"/>
96 <antcall
97 target="prereq.gef"/>
98 <antcall
99 target="prereq.dtp"/>
100 <antcall
101 target="prereq.wst"/>
102 <antcall
103 target="prereq.jst"/>
104 <antcall
105 target="prereq.wtp"/>
david_williams0fadc4e2010-03-01 04:45:19 +0000106 <antcall
107 target="getAndInstall">
108 <param
109 name="groupId"
110 value="eclipseTestFramework"/>
111 </antcall>
david_williams1641c472009-11-10 06:43:29 +0000112 </target>
113 <target
114 name="prereq.eclipse"
115 if="getprereq.eclipse">
david_williams4bf50692008-11-02 07:27:16 +0000116 <antcall
117 target="getAndInstall">
david_williams60f2e6f2008-10-28 04:14:12 +0000118 <param
119 name="groupId"
david_williams4bf50692008-11-02 07:27:16 +0000120 value="eclipse"/>
david_williams60f2e6f2008-10-28 04:14:12 +0000121 </antcall>
david_williams1641c472009-11-10 06:43:29 +0000122 </target>
123 <target
124 name="prereq.eclipseplatform"
125 if="getprereq.eclipseplatform">
david_williams4bf50692008-11-02 07:27:16 +0000126 <antcall
127 target="getAndInstall">
david_williams60f2e6f2008-10-28 04:14:12 +0000128 <param
129 name="groupId"
david_williams1641c472009-11-10 06:43:29 +0000130 value="eclipseplatform"/>
david_williams60f2e6f2008-10-28 04:14:12 +0000131 </antcall>
david_williams1641c472009-11-10 06:43:29 +0000132 </target>
133 <target
134 name="prereq.emf"
135 if="getprereq.emf">
136 <antcall
137 target="getAndInstall">
138 <param
139 name="groupId"
140 value="emf"/>
141 </antcall>
142 </target>
143 <target
144 name="prereq.emfxsd"
145 if="getprereq.emfxsd">
146 <antcall
147 target="getAndInstall">
148 <param
149 name="groupId"
150 value="emfxsd"/>
151 </antcall>
152 </target>
153 <target
154 name="prereq.emfvalidation"
155 if="getprereq.emfvalidation">
156 <antcall
157 target="getAndInstall">
158 <param
159 name="groupId"
160 value="emfvalidation"/>
161 </antcall>
162 </target>
163 <target
164 name="prereq.gef"
165 if="getprereq.gef">
166 <antcall
167 target="getAndInstall">
168 <param
169 name="groupId"
170 value="gef"/>
171 </antcall>
172 </target>
173 <target
174 name="prereq.dtp"
175 if="getprereq.dtp">
176 <antcall
177 target="getAndInstall">
178 <param
179 name="groupId"
180 value="dtp"/>
181 </antcall>
182 </target>
183 <target
184 name="prereq.wst"
185 if="getprereq.wst">
david_williams4bf50692008-11-02 07:27:16 +0000186 <antcall
187 target="getAndInstall">
188 <param
189 name="groupId"
david_williamsc879d9e2009-01-15 05:45:27 +0000190 value="wst"/>
david_williams4bf50692008-11-02 07:27:16 +0000191 </antcall>
david_williams60f2e6f2008-10-28 04:14:12 +0000192 </target>
david_williams4bf50692008-11-02 07:27:16 +0000193 <target
david_williams1641c472009-11-10 06:43:29 +0000194 name="prereq.jst"
195 if="getprereq.jst">
196 <antcall
197 target="getAndInstall">
198 <param
199 name="groupId"
200 value="jst"/>
201 </antcall>
202 </target>
203 <target
204 name="prereq.wtp"
205 if="getprereq.wtp">
206 <antcall
207 target="getAndInstall">
208 <param
209 name="groupId"
210 value="wtp"/>
211 </antcall>
212 </target>
213 <target
david_williams0fadc4e2010-03-01 04:45:19 +0000214 name="prereq.dltk"
215 if="getprereq.dltk">
216 <antcall
217 target="getAndInstall">
218 <param
219 name="groupId"
220 value="dltk"/>
221 </antcall>
222 </target>
223 <target
david_williams4bf50692008-11-02 07:27:16 +0000224 name="getAndInstall"
225 if="${groupId}.url">
david_williams60f2e6f2008-10-28 04:14:12 +0000226 <ant
227 antfile="${dependencyTargets}"
228 target="checkDependency">
229 <property
230 name="groupId"
david_williams4bf50692008-11-02 07:27:16 +0000231 value="${groupId}"/>
david_williams60f2e6f2008-10-28 04:14:12 +0000232 </ant>
233 <ant
234 antfile="${dependencyTargets}"
235 target="installDependency">
236 <property
237 name="groupId"
david_williams4bf50692008-11-02 07:27:16 +0000238 value="${groupId}"/>
david_williams60f2e6f2008-10-28 04:14:12 +0000239 <property
240 name="install.destination"
david_williams4bf50692008-11-02 07:27:16 +0000241 value="${base.install.dir}"/>
david_williams60f2e6f2008-10-28 04:14:12 +0000242 </ant>
243 </target>
david_williams4bf50692008-11-02 07:27:16 +0000244</project>