You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by gs...@apache.org on 2008/11/14 11:46:14 UTC

svn commit: r713972 - /ant/antlibs/common/trunk/build.xml

Author: gscokart
Date: Fri Nov 14 02:46:13 2008
New Revision: 713972

URL: http://svn.apache.org/viewvc?rev=713972&view=rev
Log:
if junit is not available, BuildFileTest can not be loaded (it extends junit TestCase).  But the failure reported was that ant-testutil.jar was not found

Modified:
    ant/antlibs/common/trunk/build.xml

Modified: ant/antlibs/common/trunk/build.xml
URL: http://svn.apache.org/viewvc/ant/antlibs/common/trunk/build.xml?rev=713972&r1=713971&r2=713972&view=diff
==============================================================================
--- ant/antlibs/common/trunk/build.xml (original)
+++ ant/antlibs/common/trunk/build.xml Fri Nov 14 02:46:13 2008
@@ -126,6 +126,9 @@
 
   <target name="setup-for-junit-tests" depends="setup,determine-test-types"
     unless="skip-junit">
+    <available classname="junit.framework.TestCase" property="junit-present?"/>    
+    <fail unless="junit-present?">The JUnit library is not present.</fail>
+            
     <available classname="org.apache.tools.ant.BuildFileTest"
       property="testutil-present?"
       ignoresystemclasses="true"