Author: nickboldt
Date: 2011-05-30 01:01:30 -0400 (Mon, 30 May 2011)
New Revision: 31612
Modified:
branches/jbosstools-3.2.x/build/results/build.xml
Log:
trap for case where zips/build.properties.all.xml does not exist
Modified: branches/jbosstools-3.2.x/build/results/build.xml
===================================================================
--- branches/jbosstools-3.2.x/build/results/build.xml 2011-05-30 02:42:03 UTC (rev 31611)
+++ branches/jbosstools-3.2.x/build/results/build.xml 2011-05-30 05:01:30 UTC (rev 31612)
@@ -135,10 +135,18 @@
</target>
<target name="buildResults" description="generate buildResults.html
from build properties" depends="init">
- <delete quiet="true" file="buildResults.out.html" />
- <xslt in="zips/build.properties.all.xml"
out="buildResults.out.html" style="buildResults.xsl"
force="true">
- <classpath location="${COMMON_TOOLS}/saxon.jar" />
- </xslt>
+ <if>
+ <available file="zips/build.properties.all.xml"
type="file"/>
+ <then>
+ <delete quiet="true" file="buildResults.out.html" />
+ <xslt in="zips/build.properties.all.xml"
out="buildResults.out.html" style="buildResults.xsl"
force="true">
+ <classpath location="${COMMON_TOOLS}/saxon.jar" />
+ </xslt>
+ </then>
+ <else>
+ <echo>Could not generate buildResults.out.html from
zips/build.properties.all.xml - file does not exist!</echo>
+ </else>
+ </if>
</target>
</project>