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">


