blob: f6329865603a3ccc4e9206b4dc650f41d555aca7 [file] [log] [blame]
david_williamse3c74772009-12-08 05:58:52 +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_williams3c1fba12010-01-10 23:25:07 +000011 <property
david_williamse3c74772009-12-08 05:58:52 +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_williams3c1fba12010-01-10 23:25:07 +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="true"/>
76 </condition>
david_williamse3c74772009-12-08 05:58:52 +000077 <target
78 name="get">
79 <!--
80 read in this properties, just so we can make sure our
81 requested pre-reqs are defined, which we do later with
82 statements such if="${groupId}.url"
83 -->
84 <property
85 file="${dependency.properties}"/>
86 <antcall
87 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_williams3c1fba12010-01-10 23:25:07 +0000106 <antcall
107 target="prereq.dltk"/>
david_williamse3c74772009-12-08 05:58:52 +0000108 </target>
109 <target
110 name="prereq.eclipse"
111 if="getprereq.eclipse">
112 <antcall
113 target="getAndInstall">
114 <param
115 name="groupId"
116 value="eclipse"/>
117 </antcall>
118 </target>
119 <target
120 name="prereq.eclipseplatform"
121 if="getprereq.eclipseplatform">
122 <antcall
123 target="getAndInstall">
124 <param
125 name="groupId"
126 value="eclipseplatform"/>
127 </antcall>
128 </target>
129 <target
130 name="prereq.emf"
131 if="getprereq.emf">
132 <antcall
133 target="getAndInstall">
134 <param
135 name="groupId"
136 value="emf"/>
137 </antcall>
138 </target>
139 <target
140 name="prereq.emfxsd"
141 if="getprereq.emfxsd">
142 <antcall
143 target="getAndInstall">
144 <param
145 name="groupId"
146 value="emfxsd"/>
147 </antcall>
148 </target>
149 <target
150 name="prereq.emfvalidation"
151 if="getprereq.emfvalidation">
152 <antcall
153 target="getAndInstall">
154 <param
155 name="groupId"
156 value="emfvalidation"/>
157 </antcall>
158 </target>
159 <target
160 name="prereq.gef"
161 if="getprereq.gef">
162 <antcall
163 target="getAndInstall">
164 <param
165 name="groupId"
166 value="gef"/>
167 </antcall>
168 </target>
169 <target
170 name="prereq.dtp"
171 if="getprereq.dtp">
172 <antcall
173 target="getAndInstall">
174 <param
175 name="groupId"
176 value="dtp"/>
177 </antcall>
178 </target>
179 <target
180 name="prereq.wst"
181 if="getprereq.wst">
182 <antcall
183 target="getAndInstall">
184 <param
185 name="groupId"
186 value="wst"/>
187 </antcall>
188 </target>
189 <target
190 name="prereq.jst"
191 if="getprereq.jst">
192 <antcall
193 target="getAndInstall">
194 <param
195 name="groupId"
196 value="jst"/>
197 </antcall>
198 </target>
199 <target
200 name="prereq.wtp"
201 if="getprereq.wtp">
202 <antcall
203 target="getAndInstall">
204 <param
205 name="groupId"
206 value="wtp"/>
207 </antcall>
208 </target>
david_williams3c1fba12010-01-10 23:25:07 +0000209 <target
210 name="prereq.dltk"
211 if="getprereq.dltk">
212 <antcall
213 target="getAndInstall">
214 <param
215 name="groupId"
216 value="dltk"/>
217 </antcall>
218 </target>
david_williamse3c74772009-12-08 05:58:52 +0000219 <target
220 name="getAndInstall"
221 if="${groupId}.url">
222 <ant
223 antfile="${dependencyTargets}"
224 target="checkDependency">
225 <property
226 name="groupId"
227 value="${groupId}"/>
228 </ant>
229 <ant
230 antfile="${dependencyTargets}"
231 target="installDependency">
232 <property
233 name="groupId"
234 value="${groupId}"/>
235 <property
236 name="install.destination"
237 value="${base.install.dir}"/>
238 </ant>
239 </target>
240</project>