blob: 817a393b888b43f7661b00e886414cb3f42c57f2 [file] [log] [blame]
david_williams24b89fd2009-03-13 07:01:50 +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_williams1641c472009-11-10 06:43:29 +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
23 <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>
david_williams24b89fd2009-03-13 07:01:50 +000073 <target
74 name="get">
75 <!--
76 read in this properties, just so we can make sure our
77 requested pre-reqs are defined, which we do later with
78 statements such if="${groupId}.url"
79 -->
80 <property
81 file="${dependency.properties}"/>
82 <antcall
david_williams1641c472009-11-10 06:43:29 +000083 target="prereq.eclipse"/>
david_williams24b89fd2009-03-13 07:01:50 +000084 <antcall
david_williams1641c472009-11-10 06:43:29 +000085 target="prereq.eclipseplatform"/>
david_williams24b89fd2009-03-13 07:01:50 +000086 <antcall
david_williams1641c472009-11-10 06:43:29 +000087 target="prereq.emf"/>
88 <antcall
89 target="prereq.emfxsd"/>
90 <antcall
91 target="prereq.emfvalidation"/>
92 <antcall
93 target="prereq.gef"/>
94 <antcall
95 target="prereq.dtp"/>
96 <antcall
97 target="prereq.wst"/>
98 <antcall
99 target="prereq.jst"/>
100 <antcall
101 target="prereq.wtp"/>
102 </target>
103 <target
104 name="prereq.eclipse"
105 if="getprereq.eclipse">
david_williams24b89fd2009-03-13 07:01:50 +0000106 <antcall
107 target="getAndInstall">
108 <param
109 name="groupId"
110 value="eclipse"/>
111 </antcall>
david_williams1641c472009-11-10 06:43:29 +0000112 </target>
113 <target
114 name="prereq.eclipseplatform"
115 if="getprereq.eclipseplatform">
116 <antcall
117 target="getAndInstall">
118 <param
119 name="groupId"
120 value="eclipseplatform"/>
121 </antcall>
122 </target>
123 <target
124 name="prereq.emf"
125 if="getprereq.emf">
126 <antcall
127 target="getAndInstall">
128 <param
129 name="groupId"
130 value="emf"/>
131 </antcall>
132 </target>
133 <target
134 name="prereq.emfxsd"
135 if="getprereq.emfxsd">
136 <antcall
137 target="getAndInstall">
138 <param
139 name="groupId"
140 value="emfxsd"/>
141 </antcall>
142 </target>
143 <target
144 name="prereq.emfvalidation"
145 if="getprereq.emfvalidation">
146 <antcall
147 target="getAndInstall">
148 <param
149 name="groupId"
150 value="emfvalidation"/>
151 </antcall>
152 </target>
153 <target
154 name="prereq.gef"
155 if="getprereq.gef">
156 <antcall
157 target="getAndInstall">
158 <param
159 name="groupId"
160 value="gef"/>
161 </antcall>
162 </target>
163 <target
164 name="prereq.dtp"
165 if="getprereq.dtp">
166 <antcall
167 target="getAndInstall">
168 <param
169 name="groupId"
170 value="dtp"/>
171 </antcall>
172 </target>
173 <target
174 name="prereq.wst"
175 if="getprereq.wst">
176 <antcall
177 target="getAndInstall">
178 <param
179 name="groupId"
180 value="wst"/>
181 </antcall>
182 </target>
183 <target
184 name="prereq.jst"
185 if="getprereq.jst">
186 <antcall
187 target="getAndInstall">
188 <param
189 name="groupId"
190 value="jst"/>
191 </antcall>
192 </target>
193 <target
194 name="prereq.wtp"
195 if="getprereq.wtp">
david_williams24b89fd2009-03-13 07:01:50 +0000196 <antcall
197 target="getAndInstall">
198 <param
199 name="groupId"
200 value="wtp"/>
201 </antcall>
202 </target>
203 <target
204 name="getAndInstall"
205 if="${groupId}.url">
206 <ant
207 antfile="${dependencyTargets}"
208 target="checkDependency">
209 <property
210 name="groupId"
211 value="${groupId}"/>
212 </ant>
213 <ant
214 antfile="${dependencyTargets}"
215 target="installDependency">
216 <property
217 name="groupId"
218 value="${groupId}"/>
219 <property
220 name="install.destination"
221 value="${base.install.dir}"/>
222 </ant>
223 </target>
224</project>