Author: nickboldt
Date: 2011-05-30 01:02:59 -0400 (Mon, 30 May 2011)
New Revision: 31614
Modified:
trunk/build/results/build.xml
Log:
trap for case where zips/build.properties.all.xml does not exist
Modified: trunk/build/results/build.xml
===================================================================
--- trunk/build/results/build.xml 2011-05-30 05:01:49 UTC (rev 31613)
+++ trunk/build/results/build.xml 2011-05-30 05:02:59 UTC (rev 31614)
@@ -134,10 +134,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>