renamed tests.failed to check.tests.failed to avoid "tests.failed" during build

when actually the tests have been succesful

adapted have.xalan so that it works with the xalan version
included in jdk 1.4 (no Version class there)
This commit is contained in:
Lars Kühne 2002-02-02 13:24:30 +00:00
parent b66b7a0662
commit 2aa584f3ad
1 changed files with 12 additions and 4 deletions

View File

@ -184,8 +184,16 @@
<!-- Targets to verify that Xalan is in the classpath -->
<target name="check.xalan">
<available property="have.xalan"
classname="org.apache.xalan.Version"/>
<condition property="have.xalan">
<or>
<!-- jdk 1.3 with modern Xalan -->
<available classname="org.apache.xalan.Version"/>
<!-- Xalan classes in jdk 1.4 (beta 3) are OK for running
the tests, but there is no Version class in jdk 1.4:
fallback to stable jaxp implementation class -->
<available classname="org.apache.xalan.transformer.TransformerImpl"/>
</or>
</condition>
</target>
<target name="require.xalan" depends="check.xalan" unless="have.xalan">
<fail message="Need to have Xalan in your CLASSPATH to run the tests. You can download it from http://xml.apache.org/."/>
@ -221,11 +229,11 @@
</junitreport>
<!-- if only fail had an if attribute ... ugly workaround follows -->
<antcall target="tests.failed"/>
<antcall target="check.tests.failed"/>
</target>
<target name="tests.failed" if="tests.have.failed">
<target name="check.tests.failed" if="tests.have.failed">
<property name="report" value="${basedir}/${testreport.dir}/index.html"/>
<fail message="Unit tests failed - Report is available in ${report}"/>
</target>