mirror of https://github.com/apache/lucene.git
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:
parent
360e7e234c
commit
77e80269d3
10
build.xml
10
build.xml
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue