Author: nickboldt
Date: 2010-04-26 19:07:40 -0400 (Mon, 26 Apr 2010)
New Revision: 21712
Modified:
branches/modular_build/build/build.xml
Log:
create fake test result file to avoid Hudson failure
Modified: branches/modular_build/build/build.xml
===================================================================
--- branches/modular_build/build/build.xml 2010-04-26 22:55:45 UTC (rev 21711)
+++ branches/modular_build/build/build.xml 2010-04-26 23:07:40 UTC (rev 21712)
@@ -303,6 +303,15 @@
<then>
<echo level="info">All components up to date: nothing to do!
To force a build of unchanged components, use
-Dbuild.if.sources.unchanged=true</echo>
+
+ <!-- create fake test result file to avoid Hudson failure -->
+ <delete dir="${basedir}/surefire-reports/NoTestsRun"
includeemptydirs="true" />
+ <mkdir dir="${basedir}/surefire-reports/NoTestsRun" />
+ <echo
file="${basedir}/surefire-reports/NoTestsRun/TEST-org.jboss.tools.NoTestsRun.xml"><?xml
version="1.0" encoding="UTF-8" ?>
+<testsuite failures="0" time="0" errors="0"
skipped="0" tests="0"
name="org.jboss.tools.NoTestsRun"/>
+</echo>
+ <delete dir="${basedir}/surefire-reports/${COMPONENT}"
includeemptydirs="true" />
+ <mkdir dir="${basedir}/surefire-reports/${COMPONENT}" />
</then>
</if>
</target>
@@ -341,6 +350,7 @@
</target>
<target name="collect.test.results">
+ <delete dir="${basedir}/surefire-reports/NoTestsRun"
includeemptydirs="true" />
<property name="COMPONENT" value="" />
<!-- collect test results by copying
${WORKINGDIR}/${COMPONENT}/**/target/surefire-reports/*.xml into
${basedir}/surefire-reports/${COMPONENT} -->
<delete dir="${basedir}/surefire-reports/${COMPONENT}"
includeemptydirs="true" />
Show replies by date