blob: 34ceabe3c15a2dcee259c883593358c731f9566c [file] [log] [blame]
david_williams403beae2007-12-09 02:10:40 +00001<project
2 name="Build specific targets and properties"
3 default="runTest">
david_williams8e4dc9c2008-07-06 08:08:58 +00004 <!--
5 Note to be cross-platform, "environment variables" are only
6 appropriate for some variables, e.g. ones we set, since
7 properties are case sensitive, even if the environment variables
8 on your operating system are not, e.g. it will be ${env.Path}
9 not ${env.PATH} on Windows
10 -->
david_williamsad2097e2008-01-28 06:06:12 +000011 <property
david_williams8e4dc9c2008-07-06 08:08:58 +000012 environment="env"/>
david_williams2f43da22009-07-22 04:25:24 +000013 <fail
14 message="testRoot must be set for this task"
15 unless="testRoot"/>
16 <!-- required to get proper value of dropinsFolder -->
david_williams8e4dc9c2008-07-06 08:08:58 +000017 <property
18 name="keyCfgFile"
19 value="${env.PROJECT_BUILDERS}/${projectname}/${env.RELENG}/maps/build.cfg"/>
20 <echo
david_williams1543a9b2009-11-24 01:43:55 +000021 level="info"
david_williams8e4dc9c2008-07-06 08:08:58 +000022 message="keyCfgFile: ${keyCfgFile}"/>
23 <property
24 file="${keyCfgFile}"/>
david_williams2f43da22009-07-22 04:25:24 +000025 <!--
26 typcially already set, but in case of standalone tests, may not
27 be
28 -->
29 <property
30 name="buildLabel"
31 value="${buildType}-${buildId}-${timestamp}"/>
32
ndaib8cedc82005-09-13 18:00:32 +000033
david_williams43089362008-03-25 05:43:38 +000034 <!--
35 Steps to do after the build is done.
36 -->
david_williamsad2097e2008-01-28 06:06:12 +000037 <target
38 name="test">
david_williams403beae2007-12-09 02:10:40 +000039 <dirname
40 file="${ant.file}"
david_williams8e4dc9c2008-07-06 08:08:58 +000041 property="currentDirectory"/>
david_williams403beae2007-12-09 02:10:40 +000042 <ant
43 antfile="${ant.file}"
44 target="runTest"
david_williams8e4dc9c2008-07-06 08:08:58 +000045 dir="${currentDirectory}"/>
david_williams403beae2007-12-09 02:10:40 +000046 </target>
ndaib8cedc82005-09-13 18:00:32 +000047
david_williams43089362008-03-25 05:43:38 +000048 <!--
49 Steps to do to test the build results
50 -->
david_williamsad2097e2008-01-28 06:06:12 +000051 <target
52 name="runTest">
david_williams403beae2007-12-09 02:10:40 +000053 <dirname
54 file="${ant.file}"
david_williams8e4dc9c2008-07-06 08:08:58 +000055 property="test.component.dir"/>
david_williamsad2097e2008-01-28 06:06:12 +000056 <ant
david_williams8e4dc9c2008-07-06 08:08:58 +000057 antfile="${wtp.builder.home}/scripts/build/label.xml"/>
david_williamsad2097e2008-01-28 06:06:12 +000058 <property
david_williams8e4dc9c2008-07-06 08:08:58 +000059 file="${buildDirectory}/label.properties"/>
david_williamsad2097e2008-01-28 06:06:12 +000060 <property
david_williams8e4dc9c2008-07-06 08:08:58 +000061 file="${wtp.builder.home}/build.properties"/>
david_williams403beae2007-12-09 02:10:40 +000062 <fail
63 message="testRoot must be set for this task"
david_williams8e4dc9c2008-07-06 08:08:58 +000064 unless="testRoot"/>
david_williamsad2097e2008-01-28 06:06:12 +000065 <mkdir
david_williams8e4dc9c2008-07-06 08:08:58 +000066 dir="${testRoot}"/>
david_williamsf5f131a2007-03-17 06:12:13 +000067
david_williams403beae2007-12-09 02:10:40 +000068 <!-- if results already exist, delete them -->
69 <delete
70 dir="${testRoot}/results"
david_williams8e4dc9c2008-07-06 08:08:58 +000071 failOnError="false"/>
david_williamsad2097e2008-01-28 06:06:12 +000072 <mkdir
david_williams8e4dc9c2008-07-06 08:08:58 +000073 dir="${testRoot}/results"/>
david_williamsad2097e2008-01-28 06:06:12 +000074 <mkdir
david_williams8e4dc9c2008-07-06 08:08:58 +000075 dir="${testRoot}/results/consolelogs"/>
david_williams403beae2007-12-09 02:10:40 +000076 <copy
77 todir="${testRoot}"
78 overwrite="true">
david_williamsad2097e2008-01-28 06:06:12 +000079 <fileset
david_williams8e4dc9c2008-07-06 08:08:58 +000080 dir="${test.component.dir}/testScripts"/>
david_williams403beae2007-12-09 02:10:40 +000081 </copy>
david_williams403beae2007-12-09 02:10:40 +000082 <echo
david_williams8e4dc9c2008-07-06 08:08:58 +000083 message="BASEOS: ${env.BASEOS} BASEWS: ${env.BASEWS} BASEARCH: ${env.BASEARCH} "/>
david_williams508f8602009-08-04 06:31:37 +000084 <!--
85 for this distribution, dependencies come from releng. Assume
86 no subdirectory, if not otherwise set (bug 285383).
david_williams2f53d7b2009-08-03 05:48:34 +000087 -->
david_williams508f8602009-08-04 06:31:37 +000088 <property
89 name="env.DEP_DIR"
90 value=""/>
david_williams2f53d7b2009-08-03 05:48:34 +000091 <property
92 name="dependency.properties"
david_williams400ac772009-08-03 16:52:32 +000093 value="${buildDirectory}/maps/${env.RELENG}${env.DEP_DIR}/maps/dependencies.properties"/>
david_williams508f8602009-08-04 06:31:37 +000094 <available
95 file="${dependency.properties}"
96 property="dependency.properties.exists"/>
97 <fail
david_williamsc253e572009-08-04 07:09:44 +000098 message="dependency file not found: ${dependency.properties}"
david_williams508f8602009-08-04 06:31:37 +000099 unless="dependency.properties.exists"/>
100 <ant
101 antfile="${test.component.dir}/testdependency.xml"
102 target="get">
103 <property
david_williams403beae2007-12-09 02:10:40 +0000104 name="base.install.dir"
david_williams8e4dc9c2008-07-06 08:08:58 +0000105 value="${testRoot}"/>
david_williams403beae2007-12-09 02:10:40 +0000106 </ant>
david_williamsad2097e2008-01-28 06:06:12 +0000107 <antcall
david_williams8e4dc9c2008-07-06 08:08:58 +0000108 target="unzipTests"/>
david_williamsad2097e2008-01-28 06:06:12 +0000109 <antcall
110 target="runTestEclipse">
david_williamsfcdb6972009-11-19 07:25:49 +0000111 <param
112 name="testTarget"
113 value="all"/>
david_williams403beae2007-12-09 02:10:40 +0000114 </antcall>
david_williamsad2097e2008-01-28 06:06:12 +0000115 <antcall
116 target="postRunTestEclipse">
david_williamsfcdb6972009-11-19 07:25:49 +0000117 <param
118 name="testTarget"
119 value="all"/>
david_williams403beae2007-12-09 02:10:40 +0000120 </antcall>
david_williams403beae2007-12-09 02:10:40 +0000121 </target>
david_williamsad2097e2008-01-28 06:06:12 +0000122 <target
123 name="unzipTests">
david_williams8e4dc9c2008-07-06 08:08:58 +0000124 <!--
125 unzip the builds and junit tests we use 'unzip' here, so we
126 can continue on error, if desired. (such as if zip was not
127 created, due to other failures or options).
david_williams403beae2007-12-09 02:10:40 +0000128 -->
129 <exec
130 dir="${buildDirectory}/${buildLabel}"
131 executable="unzip"
david_williams904dc3f2009-11-24 13:41:49 +0000132 failonerror="true">
david_williamsad2097e2008-01-28 06:06:12 +0000133 <arg
david_williams8e4dc9c2008-07-06 08:08:58 +0000134 line="-o -qq wtp-sdk-${buildLabel}.zip -d ${testRoot}${dropinsFolder}"/>
david_williams403beae2007-12-09 02:10:40 +0000135 </exec>
david_williams81a16892010-03-17 07:50:46 +0000136 <exec
david_williams68319022010-01-23 23:15:11 +0000137 dir="${buildDirectory}/${buildLabel}/repos"
david_williams403beae2007-12-09 02:10:40 +0000138 executable="unzip"
david_williams904dc3f2009-11-24 13:41:49 +0000139 failonerror="true">
david_williams403beae2007-12-09 02:10:40 +0000140 <arg
david_williams68319022010-01-23 23:15:11 +0000141 line="-o -qq wst.tests-buildrepo-${buildLabel}.zip -d ${testRoot}/wst.tests-buildrepo-${buildLabel}"/>
david_williams403beae2007-12-09 02:10:40 +0000142 </exec>
david_williams68319022010-01-23 23:15:11 +0000143 <exec
144 dir="${buildDirectory}/${buildLabel}/repos"
145 executable="unzip"
146 failonerror="true">
147 <arg
148 line="-o -qq jst.tests-buildrepo-${buildLabel}.zip -d ${testRoot}/jst.tests-buildrepo-${buildLabel}"/>
149 </exec>
david_williams68319022010-01-23 23:15:11 +0000150 <exec
151 dir="${buildDirectory}/${buildLabel}/repos"
152 executable="unzip"
153 failonerror="true">
154 <arg
155 line="-o -qq dali.tests-buildrepo-${buildLabel}.zip -d ${testRoot}/dali.tests-buildrepo-${buildLabel}"/>
156 </exec>
david_williams81a16892010-03-17 07:50:46 +0000157 <java
158 taskname="p2Director Install"
159 fork="true"
160 resultProperty="p2DirectorInstallResult"
161 failonerror="true"
162 timeout="${testTimeLimit}"
163 dir="${testRoot}"
164 jvm="${env.JAVA_6_HOME}/bin/java"
165 classname="org.eclipse.equinox.launcher.Main">
166 <classpath>
167 <fileset
168 dir="${testRoot}/eclipse/plugins">
169 <include
170 name="org.eclipse.equinox.launcher_*.jar"/>
171 </fileset>
172 </classpath>
173 <jvmarg
174 value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}"/>
175 <arg
176 value="-nosplash"/>
177 <arg
178 value="-consolelog"/>
179 <arg
180 value="-data"/>
181 <arg
182 value="${testRoot}/overallTestWorkspace"/>
183 <arg
184 value="-application"/>
185 <arg
186 value="org.eclipse.equinox.p2.director"/>
187 <arg
188 value="-destination"/>
189 <arg
190 value="${testRoot}/eclipse"/>
191 <arg
192 value="-profile"/>
193 <arg
194 value="SDKProfile"/>
195 <arg
196 value="-repository"/>
197 <arg
198 value="file://${testRoot}/wst.tests-buildrepo-${buildLabel},file://${testRoot}/jst.tests-buildrepo-${buildLabel},file://${testRoot}/dali.tests-buildrepo-${buildLabel}"/>
199 <arg
200 value="-installIU"/>
201 <arg
202 value="${testFeatureIUs}"/>
david_williams68319022010-01-23 23:15:11 +0000203
david_williams81a16892010-03-17 07:50:46 +0000204 <!-- make sure our forked env has a DISPLAY -->
205 <env
206 key="DISPLAY"
207 value="${env.DISPLAY}"/>
208 <redirector
209 output="${testRoot}/results/fullOutput.txt"
210 error="${testRoot}/results/fullErrorLog.txt"/>
211 <arg
212 value="-vmArgs"/>
213 <arg
214 value="-Declipse.p2.data.area=${testRoot}/eclipse/p2"/>
215 </java>
216 <echo
217 message="installation of tests result: ${p2DirectorInstallResult}"/>
218 <!--
219 <fail message="installation of tests failed"
220 if="p2DirectorInstallResult"/>
221 -->
david_williams403beae2007-12-09 02:10:40 +0000222 </target>
david_williams8e4dc9c2008-07-06 08:08:58 +0000223 <!--
224 time out may need to be set/adjust for api or performance tests?
225 This testTimeLimit is the whole, overall limit on tests. There's
226 a shorter one for individual suites. some common values, of
david_williams81a16892010-03-17 07:50:46 +0000227 milliseconds to more recognizable units: 18000000: 5 hours
228 14400000: 4 hours 7200000: 2 hours 3600000: 1 hour 1800000: 30
229 minutes 600000: 10 minutes
david_williams403beae2007-12-09 02:10:40 +0000230 -->
david_williams403beae2007-12-09 02:10:40 +0000231 <property
232 name="testTimeLimit"
david_williams20428452010-02-19 00:28:15 +0000233 value="21600000"/>
david_williams403beae2007-12-09 02:10:40 +0000234 <property
235 name="testFailOnError"
david_williams8e4dc9c2008-07-06 08:08:58 +0000236 value="false"/>
david_williams403beae2007-12-09 02:10:40 +0000237 <target
238 name="runTestEclipse"
239 description="Run our JUnit's within an instance of antRunner">
david_williams403beae2007-12-09 02:10:40 +0000240 <property
241 name="test-vm"
david_williamsdbd9d832009-01-13 06:37:49 +0000242 value="${env.JAVA_6_HOME}/bin/java"/>
david_williams81a16892010-03-17 07:50:46 +0000243 <!--
david_williams8e4dc9c2008-07-06 08:08:58 +0000244 set path to eclipse folder. If local folder, use '.';
245 otherwise, use c:\path\to\eclipse or /path/to/eclipse/
246 -->
david_williams403beae2007-12-09 02:10:40 +0000247 <property
248 name="eclipse.home"
david_williams8e4dc9c2008-07-06 08:08:58 +0000249 value="${testRoot}"/>
david_williamsad2097e2008-01-28 06:06:12 +0000250 <echo
david_williams2f43da22009-07-22 04:25:24 +0000251 message="testTarget: ${testTarget}"/>
david_williamsdb9eed92009-11-18 20:03:49 +0000252 <!--
253 can not pass in empty values in jvmargs so if not testBundle
254 specified, we'll pass a junk (unused) value
255 -->
256 <condition
257 property="testBundleParam"
258 value="-DtestBundle=${testBundle}"
259 else="-Dunused=nouse">
260 <isset
261 property="testBundle"/>
262 </condition>
david_williams2f43da22009-07-22 04:25:24 +0000263 <echo
david_williams8e4dc9c2008-07-06 08:08:58 +0000264 message="Running junits"/>
265 <!--
266 If there is not exactly one launcher in the stack, we'd best
267 fail fast, since we are not expecting that, and may indicate
268 an installation that would produce unpredictable results
david_williams403beae2007-12-09 02:10:40 +0000269 -->
david_williams8e4dc9c2008-07-06 08:08:58 +0000270 <!--
271 requires ant 1.7, and at this point, we're running 1.6 from
272 eclipse ... <condition property="expectedNumberOfLaunchers">
273 <resourcecount when="equal" count="1" > <fileset
274 dir="${testRoot}/eclipse/plugins"> <include
275 name="org.eclipse.equinox.launcher_*.jar" /> </fileset>
276 </resourcecount> </condition> <fail message="Did not find
277 expected number of launcher jars. Check installation."
278 unless="expectedNumberOfLaunchers" />
279 -->
280 <!--
david_williams81a16892010-03-17 07:50:46 +0000281 Remember: using dash 'debug' for
282 org.eclipse.ant.core.antRunner produces ant debug info to be
283 output ... which is a TON of stuff. Even 'verbose' is a bit
284 too much.
david_williams403beae2007-12-09 02:10:40 +0000285 -->
david_williams082b91e2009-11-23 04:19:20 +0000286 <echo
287 message="eclipse.launcher: ${eclipse.launcher}"/>
david_williams403beae2007-12-09 02:10:40 +0000288 <java
289 taskname="unit-test-masterprocess"
290 fork="true"
291 resultProperty="wtpmasterjunitresult"
292 failonerror="false"
293 timeout="${testTimeLimit}"
294 dir="${testRoot}/eclipse"
david_williamsdbd9d832009-01-13 06:37:49 +0000295 jvm="${env.JAVA_6_HOME}/bin/java"
david_williams403beae2007-12-09 02:10:40 +0000296 classname="org.eclipse.equinox.launcher.Main">
297 <classpath>
david_williamsad2097e2008-01-28 06:06:12 +0000298 <fileset
299 dir="${testRoot}/eclipse/plugins">
300 <include
david_williams8e4dc9c2008-07-06 08:08:58 +0000301 name="org.eclipse.equinox.launcher_*.jar"/>
david_williams403beae2007-12-09 02:10:40 +0000302 </fileset>
303 </classpath>
david_williamsad2097e2008-01-28 06:06:12 +0000304 <jvmarg
david_williams8e4dc9c2008-07-06 08:08:58 +0000305 value="-Dosgi.ws=${env.BASEWS}"/>
david_williamsad2097e2008-01-28 06:06:12 +0000306 <jvmarg
david_williams8e4dc9c2008-07-06 08:08:58 +0000307 value="-Dosgi.os=${env.BASEOS}"/>
david_williamsad2097e2008-01-28 06:06:12 +0000308 <jvmarg
david_williams8e4dc9c2008-07-06 08:08:58 +0000309 value="-Dosgi.arch=${env.BASEARCH}"/>
david_williamsad2097e2008-01-28 06:06:12 +0000310 <jvmarg
david_williams8e4dc9c2008-07-06 08:08:58 +0000311 value="-Dws=${env.BASEWS}"/>
david_williamsad2097e2008-01-28 06:06:12 +0000312 <jvmarg
david_williams8e4dc9c2008-07-06 08:08:58 +0000313 value="-Dos=${env.BASEOS}"/>
david_williamsad2097e2008-01-28 06:06:12 +0000314 <jvmarg
david_williams8e4dc9c2008-07-06 08:08:58 +0000315 value="-Darch=${env.BASEARCH}"/>
david_williamsad2097e2008-01-28 06:06:12 +0000316 <jvmarg
david_williams8e4dc9c2008-07-06 08:08:58 +0000317 value="-DbuildBranch=${buildBranch}"/>
david_williamsad2097e2008-01-28 06:06:12 +0000318 <jvmarg
david_williams8e4dc9c2008-07-06 08:08:58 +0000319 value="-DbuildType=${buildType}"/>
david_williamsad2097e2008-01-28 06:06:12 +0000320 <jvmarg
david_williams8e4dc9c2008-07-06 08:08:58 +0000321 value="-DbuildId=${buildId}"/>
david_williams26f3a5f2008-03-07 22:56:23 +0000322 <jvmarg
david_williams8e4dc9c2008-07-06 08:08:58 +0000323 value="-Dprojectname=${projectname}"/>
david_williamscf432b52008-05-13 04:58:34 +0000324 <jvmarg
david_williams8e4dc9c2008-07-06 08:08:58 +0000325 value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}"/>
david_williamscc431c02009-11-16 20:28:50 +0000326 <jvmarg
david_williamsdb9eed92009-11-18 20:03:49 +0000327 value="${testBundleParam}"/>
david_williams2f43da22009-07-22 04:25:24 +0000328 <arg
david_williams8e4dc9c2008-07-06 08:08:58 +0000329 value="-nosplash"/>
david_williamsad2097e2008-01-28 06:06:12 +0000330 <arg
david_williams8e4dc9c2008-07-06 08:08:58 +0000331 value="-consolelog"/>
david_williamsad2097e2008-01-28 06:06:12 +0000332 <arg
david_williams8e4dc9c2008-07-06 08:08:58 +0000333 value="-data"/>
david_williamsad2097e2008-01-28 06:06:12 +0000334 <arg
david_williams8e4dc9c2008-07-06 08:08:58 +0000335 value="${testRoot}/overallTestWorkspace"/>
david_williamsad2097e2008-01-28 06:06:12 +0000336 <arg
david_williams8e4dc9c2008-07-06 08:08:58 +0000337 value="-application"/>
david_williamsad2097e2008-01-28 06:06:12 +0000338 <arg
david_williams8e4dc9c2008-07-06 08:08:58 +0000339 value="org.eclipse.ant.core.antRunner"/>
david_williamsad2097e2008-01-28 06:06:12 +0000340 <arg
david_williams8e4dc9c2008-07-06 08:08:58 +0000341 value="-logger"/>
david_williamsad2097e2008-01-28 06:06:12 +0000342 <arg
david_williams8e4dc9c2008-07-06 08:08:58 +0000343 value="org.apache.tools.ant.DefaultLogger"/>
david_williams2f43da22009-07-22 04:25:24 +0000344 <arg
345 value="-file"/>
346 <arg
347 value="${testRoot}/test.xml"/>
348 <arg
349 value="${testTarget}"/>
350
351 <!-- make sure our forked env has a DISPLAY -->
david_williams403beae2007-12-09 02:10:40 +0000352 <env
353 key="DISPLAY"
david_williams8e4dc9c2008-07-06 08:08:58 +0000354 value="${env.DISPLAY}"/>
david_williams403beae2007-12-09 02:10:40 +0000355 <redirector
356 output="${testRoot}/results/fullOutput.txt"
david_williams8e4dc9c2008-07-06 08:08:58 +0000357 error="${testRoot}/results/fullErrorLog.txt"/>
david_williams2f43da22009-07-22 04:25:24 +0000358 <jvmarg
359 value="-Dbuild.home=${env.BUILD_HOME}"/>
360 <jvmarg
361 value="-DbuildDirectory=${buildDirectory}"/>
362 <jvmarg
363 value="-DbuildLabel=${buildLabel}"/>
364 <jvmarg
365 value="-DbaseLocation=${baseLocation}"/>
366 <jvmarg
367 value="-DtestRoot=${testRoot}"/>
368 <jvmarg
369 value="-DtestDir=${testRoot}"/>
370 <jvmarg
david_williams2f43da22009-07-22 04:25:24 +0000371 value="-DeclipseBuilderDirectory=${pde.builder.path}"/>
david_williams81a16892010-03-17 07:50:46 +0000372 <!--
373 <!- - IBM_JAVA_OPTIONS contains JIT work arounds for bug
374 284441 - -> <env key="IBM_JAVA_OPTIONS"
david_williamsa41839a2009-08-05 08:06:51 +0000375 value="-Xjit:{org/eclipse/wst/html/core/internal/contenttype/HTMLHeadTokenizer.primGetNextToken()Ljava/lang/String;}(disableLookahead),{org/eclipse/jst/jsp/core/internal/parser/internal/JSPTokenizer.primGetNextToken()Ljava/lang/String;}(disableLookahead)"/>
david_williams81a16892010-03-17 07:50:46 +0000376 -->
david_williams403beae2007-12-09 02:10:40 +0000377 </java>
david_williamsad2097e2008-01-28 06:06:12 +0000378 <echo
david_williams8e4dc9c2008-07-06 08:08:58 +0000379 message="wtpmasterjunitresult ${wtpmasterjunitresult}"/>
david_williams403beae2007-12-09 02:10:40 +0000380 </target>
david_williamsad2097e2008-01-28 06:06:12 +0000381 <target
382 name="postRunTestEclipse">
david_williams403beae2007-12-09 02:10:40 +0000383 <copy
384 todir="${buildDirectory}/${buildLabel}/testResults/consolelogs/testLogs"
385 overwrite="true"
386 failonerror="false">
david_williamsad2097e2008-01-28 06:06:12 +0000387 <fileset
388 dir="${testRoot}/results">
389 <include
david_williams8e4dc9c2008-07-06 08:08:58 +0000390 name="*output.txt"/>
david_williams403beae2007-12-09 02:10:40 +0000391 </fileset>
392 </copy>
393 <copy
394 todir="${buildDirectory}/${buildLabel}/testResults/consolelogs/testSysErrorLogs"
395 overwrite="true"
396 failonerror="false">
david_williamsad2097e2008-01-28 06:06:12 +0000397 <fileset
398 dir="${testRoot}/results">
399 <include
david_williams8e4dc9c2008-07-06 08:08:58 +0000400 name="*error.txt"/>
david_williams403beae2007-12-09 02:10:40 +0000401 </fileset>
402 </copy>
403 <copy
404 file="${testRoot}/results/fullOutput.txt"
405 toDir="${buildDirectory}/${buildLabel}/testResults/consolelogs/full"
406 overwrite="true"
407 failonerror="false">
408 </copy>
409 <copy
410 file="${testRoot}/results/fullErrorLog.txt"
411 toDir="${buildDirectory}/${buildLabel}/testResults/consolelogs/full"
412 overwrite="true"
413 failonerror="false">
414 </copy>
david_williams403beae2007-12-09 02:10:40 +0000415 <copy
416 todir="${buildDirectory}/${buildLabel}/testResults/xml"
417 overwrite="true"
418 failonerror="false">
david_williamsad2097e2008-01-28 06:06:12 +0000419 <fileset
420 dir="${testRoot}/results/xml">
421 <include
david_williams8e4dc9c2008-07-06 08:08:58 +0000422 name="*.xml"/>
david_williams403beae2007-12-09 02:10:40 +0000423 </fileset>
424 </copy>
425 <copy
426 todir="${buildDirectory}/${buildLabel}/testResults/html"
427 overwrite="true"
428 failonerror="false">
david_williamsad2097e2008-01-28 06:06:12 +0000429 <fileset
430 dir="${testRoot}/results/html">
431 <include
david_williams8e4dc9c2008-07-06 08:08:58 +0000432 name="*.html"/>
david_williams403beae2007-12-09 02:10:40 +0000433 </fileset>
434 </copy>
435 </target>
david_williamsad2097e2008-01-28 06:06:12 +0000436</project>