On Wednesday 07 April 2004 21:48, Erik Hatcher wrote: > Do you have junit.jar in ANT_HOME/lib? You should.
What about this patch? With this, "ant test" complains with a useful message if junit is not found. Regards Daniel -- http://www.danielnaber.de
Index: build.xml =================================================================== RCS file: /home/cvspublic/jakarta-lucene/build.xml,v retrieving revision 1.60 diff -u -r1.60 build.xml --- build.xml 30 Mar 2004 17:32:11 -0000 1.60 +++ build.xml 7 Apr 2004 20:42:08 -0000 @@ -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 your CLASSPATH + or in ANT_HOME/lib. + ################################################################## + </fail> <mkdir dir="${junit.output.dir}"/> <junit printsummary="off" haltonfailure="no" errorProperty="tests.failed" failureProperty="tests.failed">
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]