add descriptive failure if junit.jar is missing

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150282 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erik Hatcher 2004-04-07 23:53:21 +00:00
parent 360e7e234c
commit 77e80269d3
1 changed files with 8 additions and 2 deletions

View File

@ -240,8 +240,14 @@
<!-- ================================================================== -->
<!-- -->
<!-- ================================================================== -->
<target name="test" depends="compile-test" if="junit.present"
description="Runs unit tests">
<target name="test" depends="compile-test" description="Runs unit tests">
<fail unless="junit.present">
##################################################################
JUnit not found.
Please make sure junit.jar is in ANT_HOME/lib, or made available
to Ant using other mechanisms like -lib or CLASSPATH.
##################################################################
</fail>
<mkdir dir="${junit.output.dir}"/>
<junit printsummary="off" haltonfailure="no"
errorProperty="tests.failed" failureProperty="tests.failed">