blob: fe961cb04c8effbae2805be266b45e01d43699c8 [file] [log] [blame]
david_williams80f55fa2009-10-14 20:38:11 +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
david_williamsa359c932009-11-10 18:14:30 +000026 value="true"/>
david_williams1641c472009-11-10 06:43:29 +000027 </condition>
28 <condition
29 property="getprereq.eclipseplatform">
30 <istrue
david_williamsa359c932009-11-10 18:14:30 +000031 value="false"/>
david_williams1641c472009-11-10 06:43:29 +000032 </condition>
33 <condition
34 property="getprereq.emf">
35 <istrue
david_williamsa359c932009-11-10 18:14:30 +000036 value="true"/>
david_williams1641c472009-11-10 06:43:29 +000037 </condition>
38 <condition
39 property="getprereq.emfxsd">
40 <istrue
david_williamsa359c932009-11-10 18:14:30 +000041 value="true"/>
david_williams1641c472009-11-10 06:43:29 +000042 </condition>
43 <condition
44 property="getprereq.emfvalidation">
45 <istrue
david_williamsa359c932009-11-10 18:14:30 +000046 value="true"/>
david_williams1641c472009-11-10 06:43:29 +000047 </condition>
48 <condition
49 property="getprereq.gef">
50 <istrue
david_williamsa359c932009-11-10 18:14:30 +000051 value="true"/>
david_williams1641c472009-11-10 06:43:29 +000052 </condition>
53 <condition
54 property="getprereq.dtp">
55 <istrue
david_williamsa359c932009-11-10 18:14:30 +000056 value="true"/>
david_williams1641c472009-11-10 06:43:29 +000057 </condition>
58 <condition
59 property="getprereq.wst">
60 <istrue
david_williamsa359c932009-11-10 18:14:30 +000061 value="false"/>
david_williams1641c472009-11-10 06:43:29 +000062 </condition>
63 <condition
64 property="getprereq.jst">
65 <istrue
david_williamsa359c932009-11-10 18:14:30 +000066 value="false"/>
david_williams1641c472009-11-10 06:43:29 +000067 </condition>
68 <condition
69 property="getprereq.wtp">
70 <istrue
david_williamsa359c932009-11-10 18:14:30 +000071 value="true"/>
david_williams1641c472009-11-10 06:43:29 +000072 </condition>
david_williams80f55fa2009-10-14 20:38:11 +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_williams80f55fa2009-10-14 20:38:11 +000084 <antcall
david_williams1641c472009-11-10 06:43:29 +000085 target="prereq.eclipseplatform"/>
86 <antcall
87 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_williams80f55fa2009-10-14 20:38:11 +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"/>
david_williamsc72d9e32009-10-16 19:07:27 +0000121 </antcall>
david_williams1641c472009-11-10 06:43:29 +0000122 </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_williams80f55fa2009-10-14 20:38:11 +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>