fix versioning report
diff --git a/tests/org.eclipse.wtp.releng.tests/test.xml b/tests/org.eclipse.wtp.releng.tests/test.xml
index 74eeac9..5a2df7d 100644
--- a/tests/org.eclipse.wtp.releng.tests/test.xml
+++ b/tests/org.eclipse.wtp.releng.tests/test.xml
@@ -51,8 +51,8 @@
<fail
message="Error: missing property. library-file must be provided"
unless="library-file"/>
-
-
+
+
<echo
message="basedir: ${basedir}"/>
<echo
@@ -98,9 +98,7 @@
quiet="true"/>
<mkdir
dir="${workspace}"/>
- <available
- file="${buildDirectory}/${buildLabel}/versioningReport_${buildLabel}.xml"
- property="reportAvailable" />
+
</target>
<!--
This suite target defines the tests that need to be run.
@@ -122,7 +120,7 @@
value="${classname}"/>
<property
name="extraVMargs"
- value="-DrelengTestsPropertiesFile=${keyCfgFile} -DrepoURLToTest=file://${buildDirectory}/${buildLabel}/repository/ -DcomparatorLogLocation=${buildDirectory}/${buildLabel} -DcomparatorTestSummaryLogDir=${buildDirectory}/${buildLabel}/testResults -DcomparatorFilterRules=${buildDirectory}/${buildLabel}/comparatorfilter.properties" />
+ value="-DrelengTestsPropertiesFile=${keyCfgFile} -DrepoURLToTest=file://${buildDirectory}/${buildLabel}/repository/ -DcomparatorLogLocation=${buildDirectory}/${buildLabel} -DcomparatorTestSummaryLogDir=${buildDirectory}/${buildLabel}/testResults -DcomparatorFilterRules=${buildDirectory}/${buildLabel}/comparatorfilter.properties"/>
</ant>
<condition
property="dotlogavailable">
@@ -166,6 +164,7 @@
</target>
<target
name="copyxsl"
+ depends="checkReport"
if="reportAvailable">
<!-- copy our particular xsl files to web directory for prosperity-->
<copy
@@ -178,7 +177,7 @@
</fileset>
</copy>
<!-- and use them to create basic HTML display, if there is a report -->
- <xslt
+ <xslt
basedir="${buildDirectory}/${buildLabel}/"
includes="versioningReport_${buildLabel}.xml"
destdir="${buildDirectory}/${buildLabel}/"
@@ -189,4 +188,11 @@
<![CDATA[<?php $versionReportFilename="versioningReport_${buildLabel}" ?>]]>
</echo>
</target>
+
+ <target
+ name="checkReport">
+ <available
+ file="${buildDirectory}/${buildLabel}/versioningReport_${buildLabel}.xml"
+ property="reportAvailable"/>
+ </target>
</project>
\ No newline at end of file