blob: 3b83ed8a1e8e227aec816d2c13b8133f19078ea4 [file] [log] [blame]
Stephan Herrmanndcd87c12010-04-25 10:59:27 +00001<?xml version="1.0"?>
2<!--
3 Copyright (c) 2010 Stephan Herrmann and others.
4 All rights reserved. This program and the accompanying materials
5 are made available under the terms of the Eclipse Public License v1.0
6 which accompanies this distribution, and is available at
7 http://www.eclipse.org/legal/epl-v10.html
8
9 Contributors:
10 Stephan Herrmann - initial API and implementation
11-->
12<project name="Main Object Teams Build and Test Automation" default="INFO">
13
14 <target name="showGivenProperties"
15 description="Show values of all properties that should be passed from our caller.">
16 <echo>Properties passed into this script:
17------------------------------------------------------------------------------
Stephan Herrmann5acccae2019-04-13 17:46:35 +020018path of base eclipse SDK:
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000019 eclipse-app.tgz = ${eclipse-app.tgz}
Stephan Herrmannaf43e4a2013-04-29 23:19:56 +020020eclipse SDK build qualifier:
21 eclipse.sdk.qualifier = ${eclipse.sdk.qualifier}
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000022path of eclipse test framework:
Stephan Herrmann8372dc22010-06-03 22:41:05 +000023 eclipse.tests.zip= ${eclipse.tests.zip}
24path of published updates:
25 published.updates= ${published.updates}
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000026should sources be built (true|false)?
27 do.build.all = ${do.build.all}
28should test be run (true|false)?
29 do.run.tests = ${do.run.tests}
Stephan Herrmann56428e92013-02-23 12:29:56 +010030directory for tempory files during testing:
31 test.tmpDir = ${test.tmpDir}
Stephan Herrmanne73f8852016-11-01 00:23:59 +010032git working area
33 fetchCacheLocation = ${fetchCacheLocation}
Stephan Herrmanne8ce6eb2016-11-01 01:01:55 +010034path to map file (with substitutions):
35 map.file.path = ${map.file.path}
36
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000037------------------------------------------------------------------------------
38 </echo>
39 </target>
40
41 <target name="setupProperties" depends="showGivenProperties">
42
43 <dirname property="_toplevelDir" file="${ant.file}"/>
44
45 <!-- main configuration file (version dependent names etc.): -->
46 <loadproperties srcfile="${_toplevelDir}/run.properties" />
47
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000048 <!-- ======== Directories (indentation shows structure): ======== -->
49 <!-- build scripts: -->
50 <property name="OTScriptDir" value="${_toplevelDir}" />
51 <property name="buildfile" value="${OTScriptDir}/build.xml" />
52 <property name="builder-otcompiler" value="${OTScriptDir}/OT-Compiler" />
53 <property name="builder-otdt" value="${OTScriptDir}/OTDT-Build" />
Stephan Herrmann89245632019-04-13 20:05:41 +020054
55 <!-- directories for testing: -->
56 <property name="test.root.dir" value="${user.dir}/test-root" />
57 <!-- This name is used in individual test.xml of test plugins: -->
58 <property name="test.eclipseDir" value="${test.root.dir}/eclipse" />
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000059
60 <!-- directories for the build: -->
61 <property name="build.root.dir" value="${user.dir}/build-root" />
Stephan Herrmann33c26042010-06-03 10:24:16 +000062 <!-- These names are hard coded in pde-build: -->
63 <property name="buildDirectory" value="${build.root.dir}/src" />
Stephan Herrmann342fbb32019-04-13 20:20:46 +020064 <property name="bootLocation" value="${build.root.dir}/eclipse" />
Stephan Herrmann89245632019-04-13 20:05:41 +020065 <property name="baseLocation" value="${test.eclipseDir}" />
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000066
67 <!-- directories for update sites: -->
68 <property name="otdtUpdatesDir" value="${user.dir}/updateSite"/>
69 <property name="testsUpdatesDirBase" value="${user.dir}/updateSiteTests"/>
Stephan Herrmann20ff77c2010-06-03 09:31:09 +000070 <!-- will have sub directories "eclipse" and "otdt" -->
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000071
Stephan Herrmanneac90682013-04-29 23:29:13 +020072 <!-- ======== Insert SDK build qualifier into our configuration files: ======== -->
73 <copy file="${map.file.path}.in" tofile="${map.file.path}">
74 <filterset>
75 <filter token="SDK_QUALIFIER" value="${eclipse.sdk.qualifier}"/>
76 </filterset>
77 </copy>
Stephan Herrmann32ed6af2014-01-05 02:44:25 +010078 <!-- Insert SDK build qualifier into our configuration file: -->
79 <copy file="${OTScriptDir}/test.properties.in" tofile="${OTScriptDir}/test.properties" overwrite="true">
80 <filterset>
81 <filter token="SDK_QUALIFIER" value="${eclipse.sdk.qualifier}"/>
82 </filterset>
83 </copy>
84
85 <!-- versions of test plugins: -->
86 <loadproperties srcfile="${OTScriptDir}/test.properties" />
Stephan Herrmanneac90682013-04-29 23:29:13 +020087
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000088 <!-- ======== More Configuration Details: ======== -->
89 <!-- maybe obsolete: file prefix to distinguish output files. -->
90 <property name="file-id" value="XXX" />
91
92 <!-- Configure Java for STAGE 1 and STAGE 2 building: -->
93 <property name="vm" value="java" />
94 <property name="vm.args" value="-Xmx912m" />
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000095
96 <property name="installmode" value="clean" />
97
98 <property name="saxon.jar.name" value="saxon8.jar" />
99 <property name="saxon.jar.path" value="${user.home}/.ant/lib/${saxon.jar.name}" />
Stephan Herrmann2ab0c0e2016-11-01 14:21:09 +0100100 <available file="${saxon.jar.path}" property="_hasSaxon.jar" /> <!-- on HIPP this is set to true by the caller -->
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000101
102 <!-- ant's os.arch is slightly different than osgi's arch -->
Stephan Herrmann1a9d85a2010-05-17 22:45:31 +0000103 <condition property="arch" value="x86_64"> <!-- HACK: hard coding 64-bit architecture -->
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000104 <os arch="i386" />
105 </condition>
106 <condition property="arch" value="ppc64"> <!-- HACK: hard coding 64-bit architecture -->
107 <os arch="ppc" />
108 </condition>
Stephan Herrmann005fc312010-05-18 12:52:58 +0000109 <condition property="arch" value="x86_64"> <!-- Map ant's arch to OSGi arch -->
110 <os arch="amd64" />
111 </condition>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000112 <!-- if not set above, set it to os.arch -->
113 <property name="arch" value="${os.arch}" />
114
115 </target>
116
117
118 <target name="INFO">
119 <echo>Usage:
Stephan Herrmannb105b082011-05-15 00:39:56 +0000120 ant -f run.xml ot-junit-all -> runs OTDT Build and Testprocess
121 ant -f run.xml ot-junit-otdt -> runs OTDT Build and Testprocess excluding jdt tests
122 ant -f run.xml ot-junit-build -> runs just OTDT Buildprocess
123 ant -f run.xml ot-compiler-build -> just build the compiler
124 ant -f run.xml ot-junit-run -> runs just OTDT Tests w/o TestSetup
125 </echo>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000126 </target>
127
128 <target name="ot-junit-all" depends="setupProperties,checkOS" description="Build all and run all tests.">
129 <echo message="Starting BuildProcess and Testrun in ${build.root.dir}"/>
130 <antcall target="verifyAntInstall"/>
131 <antcall target="setupTests" />
132 <antcall target="runAllTests"/>
133 </target>
134
Stephan Herrmannd8c81652010-11-06 15:01:14 +0000135 <target name="ot-junit-otdt" depends="setupProperties,checkOS" description="Build all and run otdt tests.">
136 <echo message="Starting BuildProcess and Testrun in ${build.root.dir}"/>
137 <antcall target="verifyAntInstall"/>
138 <antcall target="setupTests" />
139 <antcall target="runOTDTTests"/>
140 </target>
141
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000142 <target name="ot-junit-build" depends="setupProperties,checkOS" description="build everything without running tests">
143 <echo message="Starting BuildProcess in ${build.root.dir}"/>
144 <antcall target="verifyAntInstall"/>
Stephan Herrmann8b5e97e2013-07-30 18:44:03 +0200145 <antcall target="setupTests" />
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000146 </target>
147
Stephan Herrmannb59f3f02011-05-15 00:17:51 +0000148 <target name="ot-compiler-build" depends="setupProperties,checkOS" description="build only the compiler (for debugging the build)">
149 <echo message="Starting BuildProcess in ${build.root.dir}"/>
150 <antcall target="verifyAntInstall"/>
151 <antcall target="createOTCompilerEclipse"/>
152 </target>
153
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000154 <target name="ot-junit-run" depends="setupProperties,checkOS" description="Run tests without building">
155 <echo message="Starting Testrun ${test.root.dir}"/>
156 <antcall target="runAllTests" />
157 </target>
158
Stephan Herrmann8b5e97e2013-07-30 18:44:03 +0200159 <target name="ot-junit-run-ot" depends="setupProperties,checkOS" description="Run OT tests without building">
160 <echo message="Starting Testrun ${test.root.dir}"/>
161 <antcall target="runOTDTTests" />
162 </target>
163
Stephan Herrmanneb0f2922018-08-09 13:27:26 +0200164 <target name="ot-junit-run-onlyone" depends="setupProperties,checkOS" description="Run OT tests without building">
165 <echo message="Starting Testrun ${test.root.dir}"/>
Stephan Herrmanna887ab72018-08-09 14:11:12 +0200166 <antcall target="setupTests" />
Stephan Herrmanneb0f2922018-08-09 13:27:26 +0200167 <antcall target="runOnlyoneTests" />
168 </target>
169
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000170 <!-- =================== END Public Targets ==================== -->
171
172 <!-- === Setup Targets: === -->
173
174 <target name="verifyAntInstall" unless="_hasSaxon.jar">
175 <copy failonerror="true" overwrite="false" file="${OTScriptDir}/${saxon.jar.name}" tofile="${saxon.jar.path}"></copy>
176 <echo message="Needed to copy saxon8.jar to ${saxon.jar.path}. Please restart the build." />
177 <echo message="For an explanation, see http://ant.apache.org/faq.html#delegating-classloader-1.6" />
178 <fail message="See above. Please restart the build."/>
179 </target>
180
181 <!-- checks on which os ant is run, set ${os} and ${ws} accordingly -->
182 <target name="determineOS">
183 <condition property="os.isWindows">
184 <os family="windows"/>
185 </condition>
186
187 <condition property="os.isLinux">
188 <os name="Linux" />
189 </condition>
190 </target>
191
192 <target name="checkOS" depends="determineOS,windows,linux"/>
193
194 <target name="windows" if="os.isWindows">
195 <echo message="OS is Windows"/>
196 <property name="os" value="win32" />
197 <property name="ws" value="win32" />
198 </target>
199
200 <target name="linux" unless="os.isWindows" >
201 <echo message="OS is Linux"/>
202 <!-- eclipse-app.tgz is already passed from the calling script -->
203 <property name="os" value="linux" />
204 <property name="ws" value="gtk" />
205 </target>
206
207 <target name="setupForCompile" depends="checkOS" unless="_hasCreatedOTDTEclipse">
208 <antcall target="UnzipEclipse"/>
209 <antcall target="AddPluginsToEclipse"/>
210 </target>
211
212 <target name="UnzipEclipse">
Stephan Herrmann3b9c6ee2019-07-20 17:17:41 +0200213 <echo message="Extracting Boot Eclipse (${eclipse-app.tgz}) in ${build.root.dir}..."/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000214 <mkdir dir="${build.root.dir}"/>
Stephan Herrmann3b9c6ee2019-07-20 17:17:41 +0200215 <untar compression="gzip" src="${eclipse-app.tgz}" dest="${build.root.dir}"/>
216 <echo message="Extracting Base Eclipse (${eclipse-app.tgz}) in ${test.root.dir}..."/>
Stephan Herrmannd3be87b2019-04-13 20:14:21 +0200217 <mkdir dir="${test.root.dir}"/>
218 <untar compression="gzip" src="${eclipse-app.tgz}" dest="${test.root.dir}"/>
Stephan Herrmann3b9c6ee2019-07-20 17:17:41 +0200219 <!-- avoid conflict with OTDT-variant when resolving source plug-ins against baseLocation: -->
220 <delete>
221 <fileset dir="${baseLocation}/plugins/" includes="org.eclipse.jdt.core_*.v* org.eclipse.jdt.core.source_*.v*" />
222 </delete>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000223 </target>
224
Stephan Herrmann342fbb32019-04-13 20:20:46 +0200225 <target name="AddPluginsToEclipse" description="Add git.pde.build plugins to the boot Eclipse">
226 <mkdir dir="${bootLocation}/dropins/plugins"/>
227 <copy file="${OTScriptDir}/lib/${git.pde.build}" todir="${bootLocation}/dropins/plugins" />
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000228 </target>
229
230 <!-- ==== BUILDING AND RUNNING: ==== -->
231
232 <!-- ==== BUILD STAGE 1: ==== -->
233 <!-- setting an empty inputstring is a workaround for http://issues.apache.org/bugzilla/show_bug.cgi?id=34461 -->
234 <target name="createOTCompilerEclipse" depends="setupForCompile" description="create the bootstrapping Eclipse with OT/J compiler">
Stephan Herrmann30912d62019-05-23 20:00:33 +0200235 <echo message="Invoke pdebuild for creating the base new OT-Compiler"/>
236 <java
237 inputstring=""
238 dir="${baseLocation}"
239 fork="true"
240 classname="org.eclipse.equinox.launcher.Main"
Stephan Herrmann3b9c6ee2019-07-20 17:17:41 +0200241 classpath="${bootLocation}/plugins/${org.eclipse.equinox.launcher_jar}">
Stephan Herrmann30912d62019-05-23 20:00:33 +0200242 <arg value="-Dosgi.ws=${ws}"/>
243 <arg value="-Dosgi.os=${os}"/>
244 <arg value="-Dosgi.arch=${arch}"/>
245 <arg value="-application"/>
246 <arg value="org.eclipse.ant.core.antRunner"/>
247 <arg value="-buildfile"/>
248 <arg value="${buildfile}"/>
249 <arg value="-Dbuild.root.dir=${build.root.dir}"/>
250 <arg value="-DbaseLocation=${baseLocation}"/>
Stephan Herrmannce88e992019-07-14 17:45:55 +0200251 <arg value="-DbootLocation=${bootLocation}"/>
Stephan Herrmann30912d62019-05-23 20:00:33 +0200252 <arg value="-DOTScriptDir=${OTScriptDir}"/>
253 <arg value="-Drun.eclipseScriptDir=${run.eclipseScriptDir}"/>
254 <arg value="-Dbuilder=${builder-otcompiler}"/>
255 <arg value="-D${installmode}=true"/> <!-- <- obsolete? -->
256 <arg value="-Dcomponent.short=OT-Compiler"/>
257 <arg value="-DotdtUpdatesDir=${otdtUpdatesDir}"/>
258 <arg value="-Dconfigs=*,*,*"/>
259 <arg value="-Dbaseos=${os}"/>
260 <arg value="-Dbasews=${ws}"/>
261 <arg value="-Dbasearch=${arch}"/>
262 <arg value="-Dtest.root.dir=${test.root.dir}"/>
263 <arg value="-Dtest.eclipseDir=${test.eclipseDir}"/>
264 <arg value="-DmapVersionTag=${mapVersionTag}"/>
265 <arg value="-Dmap.file.path=${map.file.path}"/>
Stephan Herrmannbd1e2192019-07-17 23:44:52 +0200266 <arg value="-DfetchCacheLocation=${fetchCacheLocation}"/>
Stephan Herrmann30912d62019-05-23 20:00:33 +0200267 <arg value="-Declipse.sdk.qualifier=${eclipse.sdk.qualifier}"/>
268 <arg value="-Declipse-app.tgz=${eclipse-app.tgz}"/>
269 <arg value="-Declipse.tests.zip=${eclipse.tests.zip}"/>
270 <!--arg value="-verbose" /-->
271 <jvmarg value="${vm.args}"/>
Stephan Herrmann30912d62019-05-23 20:00:33 +0200272 </java>
Stephan Herrmann3b9c6ee2019-07-20 17:17:41 +0200273 <!-- Now we should have an update site with the patch feature, time to install it into the boot eclipse: -->
274 <ant antfile="${OTScriptDir}/p2helper.xml" target="installFeature" dir="${bootLocation}">
Stephan Herrmann30912d62019-05-23 20:00:33 +0200275 <property name="feature" value="org.eclipse.objectteams.otdt.core.patch.feature.group"/>
276 <property name="sourceUpdatesDir" value="${otdtUpdatesDir}"/>
Stephan Herrmann3b9c6ee2019-07-20 17:17:41 +0200277 <property name="targetEclipseDir" value="${bootLocation}"/>
Stephan Herrmann30912d62019-05-23 20:00:33 +0200278 </ant>
Stephan Herrmann3b9c6ee2019-07-20 17:17:41 +0200279 <!-- make space for next stage of building, avoid duplicate jdt.core plugins from stages 1 & 2 -->
280 <delete includeemptydirs="true">
281 <fileset dir="${otdtUpdatesDir}" includes="**"/>
282 </delete>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000283 </target>
284
285 <!-- ==== BUILD STAGE 2: ==== -->
286 <!-- setting an empty inputstring is a workaround for http://issues.apache.org/bugzilla/show_bug.cgi?id=34461 -->
287 <target name="createOTDTEclipse" depends="createOTCompilerEclipse" unless="_hasCreatedOTDTEclipse">
288
289 <!-- Make org.eclipse.test.performance available while compiling test projects: -->
Stephan Herrmann3b9c6ee2019-07-20 17:17:41 +0200290 <echo message="Pre-installing Eclipse Test Framework into base Eclipse..."/>
Stephan Herrmann67cbf1c2010-09-26 09:59:15 +0000291 <mkdir dir="${testsUpdatesDirBase}/eclipse"/>
292 <unzip dest="${testsUpdatesDirBase}/eclipse" src="${eclipse.tests.zip}"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000293 <ant antfile="${OTScriptDir}/p2helper.xml" target="installFeature" dir="${baseLocation}">
294 <property name="feature" value="org.eclipse.test.feature.group"/>
Stephan Herrmann20ff77c2010-06-03 09:31:09 +0000295 <property name="sourceUpdatesDir" value="${testsUpdatesDirBase}/eclipse"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000296 <property name="targetEclipseDir" value="${baseLocation}"/>
297 </ant>
Stephan Herrmann8372dc22010-06-03 22:41:05 +0000298
299 <!-- pre-load updateSite with published releases: -->
Stephan Herrmann3b9c6ee2019-07-20 17:17:41 +0200300<!-- don't use previous artifacts during the transition to OTDRE:
Stephan Herrmann0c9b5722010-06-04 22:13:03 +0000301 <mkdir dir="${otdtUpdatesDir}/plugins"/>
302 <mkdir dir="${otdtUpdatesDir}/features"/>
303 <exec executable="/bin/sh">
304 <arg value="-c"/>
305 <arg value="ln -s ${published.updates}/features/* ${otdtUpdatesDir}/features/"/>
306 </exec>
307 <exec executable="/bin/sh">
308 <arg value="-c"/>
309 <arg value="ln -s ${published.updates}/plugins/* ${otdtUpdatesDir}/plugins/"/>
310 </exec>
Stephan Herrmanna5b8dbf2015-10-18 17:46:21 +0200311-->
Stephan Herrmann8372dc22010-06-03 22:41:05 +0000312 <!-- pre-load category-less metadata: -->
Stephan Herrmanna5b8dbf2015-10-18 17:46:21 +0200313<!--
Stephan Herrmann8372dc22010-06-03 22:41:05 +0000314 <copy failonerror="false" flatten="true" toDir="${otdtUpdatesDir}">
315 <fileset dir="${user.dir}/metadata">
316 <include name="*.xml"/>
317 </fileset>
318 </copy>
Stephan Herrmanna5b8dbf2015-10-18 17:46:21 +0200319-->
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000320
321 <echo message="Invoke pdebuild for creating a full OTDT"/>
322 <java
323 inputstring=""
Stephan Herrmann84a4f632019-04-13 20:36:08 +0200324 dir="${bootLocation}"
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000325 fork="true"
326 classname="org.eclipse.equinox.launcher.Main"
Stephan Herrmann3b9c6ee2019-07-20 17:17:41 +0200327 classpath="${bootLocation}/plugins/${org.eclipse.equinox.launcher_jar}">
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000328 <arg value="-clean"/>
329 <arg value="-Dosgi.ws=${ws}"/>
330 <arg value="-Dosgi.os=${os}"/>
331 <arg value="-Dosgi.arch=${arch}"/>
332 <arg value="-application"/>
333 <arg value="org.eclipse.ant.core.antRunner"/>
334 <arg value="-buildfile"/>
335 <arg value="${buildfile}"/>
336 <arg value="-Dbuild.root.dir=${build.root.dir}"/>
Stephan Herrmann1c25fec2019-04-13 20:44:20 +0200337 <arg value="-DbootLocation=${bootLocation}"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000338 <arg value="-DbaseLocation=${baseLocation}"/>
Stephan Herrmann4d4276f2019-04-13 22:06:31 +0200339 <arg value="-DtransformedRepoLocation=${baseLocation}"/> <!-- fetch jars into target -->
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000340 <arg value="-Drun.eclipseScriptDir=${run.eclipseScriptDir}"/>
341 <arg value="-DOTScriptDir=${OTScriptDir}"/>
342 <arg value="-Dbuilder=${builder-otdt}"/>
343 <arg value="-D${installmode}=true"/>
344 <arg value="-Dcomponent.short=OTDT-Build"/>
345 <arg value="-DotdtUpdatesDir=${otdtUpdatesDir}"/>
Stephan Herrmann20ff77c2010-06-03 09:31:09 +0000346 <arg value="-DtestsUpdatesDirBase=${testsUpdatesDirBase}"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000347 <arg value="-Dbaseos=${os}"/>
348 <arg value="-Dbasews=${ws}"/>
349 <arg value="-Dbasearch=${arch}"/>
350 <arg value="-Dtest.root.dir=${test.root.dir}"/>
351 <arg value="-Dtest.eclipseDir=${test.eclipseDir}"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000352 <arg value="-DmapVersionTag=${mapVersionTag}"/>
Stephan Herrmann414d0732016-11-01 11:43:14 +0100353 <arg value="-Dmap.file.path=${map.file.path}"/>
354 <arg value="-DfetchCacheLocation=${fetchCacheLocation}"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000355 <arg value="-Ddo.run.tests=${do.run.tests}"/>
356 <arg value="-Ddo.build.all=${do.build.all}"/>
357 <arg value="-Declipse-app.tgz=${eclipse-app.tgz}"/>
358 <arg value="-Declipse.tests.zip=${eclipse.tests.zip}"/>
Stephan Herrmanna11eb202016-11-10 21:53:44 +0100359 <arg value="-Djdt.compiler.apt=${jdt.compiler.apt}"/>
360 <arg value="-Djdt.compiler.tool=${jdt.compiler.tool}"/>
Stephan Herrmanneacdfde2010-08-25 05:58:42 +0000361 <!--arg value="-verbose" /-->
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000362 <jvmarg value="${vm.args}"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000363 <!-- arg value="${verboseAnt}"/ -->
364 <!-- arg value="-debug" / -->
365 </java>
Stephan Herrmann20ff77c2010-06-03 09:31:09 +0000366 <!-- At this point a local update site exists, thanks to p2gathering=true -->
Stephan Herrmann99e184d2010-06-11 17:27:25 +0000367
Stephan Herrmann31101742019-05-23 19:11:12 +0200368 <ant antfile="${OTScriptDir}/p2helper.xml" target="patchMetadata" dir="${otdtUpdatesDir}"/>
369
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000370 <property name="_hasCreatedOTDTEclipse" value="true" />
371 </target>
372
373 <!-- TESTING at STAGE 3: -->
374 <target name="setupTests" depends="createOTDTEclipse" description="Install the tests into an fresh OTDT">
375 <available file="${buildDirectory}/label.properties" property="label.properties.exists" />
376 <ant antfile="${OTScriptDir}/test.xml" target="setupTests" dir="${build.root.dir}">
377 <property name="os" value="${os}" />
378 <property name="ws" value="${ws}" />
379 <property name="arch" value="${arch}" />
380 <property name="baseos" value="${os}" />
381 <property name="basews" value="${ws}" />
382 <property name="basearch" value="${arch}" />
383 <property name="eclipse-app.tgz" value="${eclipse-app.tgz}" />
384 <property file="${buildDirectory}/label.properties" />
385 <property name="otdtUpdatesDir" value="${otdtUpdatesDir}" />
Stephan Herrmann20ff77c2010-06-03 09:31:09 +0000386 <property name="testsUpdatesDirBase" value="${testsUpdatesDirBase}" />
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000387 </ant>
388 </target>
389
390 <target name="runAllTests" description="Delegate to the next level script to perform the actual testing.">
391 <ant antfile="${OTScriptDir}/test.xml" target="all" dir="${build.root.dir}">
392 <property name="os" value="${os}" />
393 <property name="ws" value="${ws}" />
394 <property name="arch" value="${arch}" />
395 <property name="baseos" value="${os}" />
396 <property name="basews" value="${ws}" />
397 <property name="basearch" value="${arch}" />
398 <property name="otdtUpdatesDir" value="${otdtUpdatesDir}" />
Stephan Herrmann20ff77c2010-06-03 09:31:09 +0000399 <property name="testsUpdatesDirBase" value="${testsUpdatesDirBase}" />
Stephan Herrmann56428e92013-02-23 12:29:56 +0100400 <property name="test.tmpDir" value="${test.tmpDir}"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000401 <property name="vmargs" value="${vmargs}" />
402 </ant>
403 </target>
404
Stephan Herrmannd8c81652010-11-06 15:01:14 +0000405 <target name="runOTDTTests" description="Delegate to the next level script to perform the actual testing.">
406 <ant antfile="${OTScriptDir}/test.xml" target="otdt-tests" dir="${build.root.dir}">
407 <property name="os" value="${os}" />
408 <property name="ws" value="${ws}" />
409 <property name="arch" value="${arch}" />
410 <property name="baseos" value="${os}" />
411 <property name="basews" value="${ws}" />
412 <property name="basearch" value="${arch}" />
413 <property name="otdtUpdatesDir" value="${otdtUpdatesDir}" />
414 <property name="testsUpdatesDirBase" value="${testsUpdatesDirBase}" />
Stephan Herrmann56428e92013-02-23 12:29:56 +0100415 <property name="test.tmpDir" value="${test.tmpDir}"/>
Stephan Herrmannd8c81652010-11-06 15:01:14 +0000416 <property name="vmargs" value="${vmargs}" />
417 </ant>
418 </target>
419
Stephan Herrmanneb0f2922018-08-09 13:27:26 +0200420 <target name="runOnlyoneTests" description="Delegate to the next level script to perform the actual testing.">
421 <ant antfile="${OTScriptDir}/test.xml" target="onlyone" dir="${build.root.dir}">
422 <property name="os" value="${os}" />
423 <property name="ws" value="${ws}" />
424 <property name="arch" value="${arch}" />
425 <property name="baseos" value="${os}" />
426 <property name="basews" value="${ws}" />
427 <property name="basearch" value="${arch}" />
428 <property name="otdtUpdatesDir" value="${otdtUpdatesDir}" />
429 <property name="testsUpdatesDirBase" value="${testsUpdatesDirBase}" />
430 <property name="test.tmpDir" value="${test.tmpDir}"/>
431 <property name="vmargs" value="${vmargs}" />
432 </ant>
433 </target>
434
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000435 <!-- currently unused target name="collectResults">
Stephan Herrmanna1eeb302013-04-29 23:51:25 +0200436 <ant target="collect" antfile="${test.root.dir}/library.xml" dir="${otresults}">
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000437 <property name="includes" value="org.*.xml"/>
438 <property name="output-file" value="AllTestSuites.xml"/>
439 </ant>
440 </target -->
441
442</project>