ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gscok...@apache.org
Subject svn commit: r713972 - /ant/antlibs/common/trunk/build.xml
Date Fri, 14 Nov 2008 10:46:14 GMT
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"



Mime
View raw message