Author: nickboldt
Date: 2010-05-21 21:52:34 -0400 (Fri, 21 May 2010)
New Revision: 22257
Modified:
trunk/build/build.xml
Log:
add collect.test.results.for.hudson target so we can call this AFTER a pure maven build to
just collect tests
Modified: trunk/build/build.xml
===================================================================
--- trunk/build/build.xml 2010-05-22 01:43:00 UTC (rev 22256)
+++ trunk/build/build.xml 2010-05-22 01:52:34 UTC (rev 22257)
@@ -546,10 +546,11 @@
<target name="collect.test.results.for.hudson" depends="init"
if="isInHudson" description="collect test results after a pure maven build
so Hudson has something to see">
<var name="tests.results.found" value="false" />
- <for param="test.dir">
+ <for param="test.dir" delimiter=",
+ ">
<path>
<dirset dir="${WORKINGDIR}"
- includes="**/target/surefire-reports/TEST-*.xml"
+ includes="**/target/surefire-reports/TEST-*.xml,
**/**/target/surefire-reports/TEST-*.xml"
excludes="**/*NoTestsRun.xml"
/>
</path>
@@ -558,16 +559,16 @@
</sequential>
</for>
<if>
- <equals arg1="${tests.results.found}" arg2="false" />
+ <equals arg1="${tests.results.found}" arg2="true" />
<then>
- <antcall target="create.empty.test.results.file" />
- <property name="no.tests.run" value="true" />
- </then>
- <else>
<antcall target="collect.test.results">
<param name="COMPONENT" value="." />
</antcall>
<antcall target="collect.all.test.results"/>
+ </then>
+ <else>
+ <antcall target="create.empty.test.results.file" />
+ <property name="no.tests.run" value="true" />
</else>
</if>
</target>
Show replies by date