ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r450238 - /ant/core/trunk/build.xml
Date Tue, 26 Sep 2006 22:25:03 GMT
Author: mbenson
Date: Tue Sep 26 15:25:00 2006
New Revision: 450238

URL: http://svn.apache.org/viewvc?view=rev&rev=450238
Log:
a little more work

Modified:
    ant/core/trunk/build.xml

Modified: ant/core/trunk/build.xml
URL: http://svn.apache.org/viewvc/ant/core/trunk/build.xml?view=diff&rev=450238&r1=450237&r2=450238
==============================================================================
--- ant/core/trunk/build.xml (original)
+++ ant/core/trunk/build.xml Tue Sep 26 15:25:00 2006
@@ -1549,24 +1549,22 @@
        ===================================================================
   -->
 
-  <target name="check-failed">
-    <condition property="tests.failed">
-      <or>
-        <isset property="junit.failed" />
-        <isset property="antunit.failed" />
-      </or>
-    </condition>
+  <target name="tests-failed">
+    <fail>Unit tests failed; see ${build.junit.reports} / ${antunit.reports}
+      <condition>
+        <or>
+          <isset property="junit.failed" />
+          <isset property="antunit.failed" />
+        </or>
+      </condition>
+    </fail>
   </target>
 
-  <target name="test" depends="junit-report,antunit-report,check-failed"
-          description="--> run unit tests / reports">
-    <fail if="tests.failed">Unit tests failed; see ${build.junit.reports} / ${antunit.reports}</fail>
-  </target>
+  <target name="test" depends="junit-report,antunit-report,tests-failed"
+          description="--> run unit tests and reports" />
 
-  <target name="run-tests" depends="junit-tests,antunit-tests,check-failed"
-          description="--> run unit tests">
-    <fail if="tests.failed">Unit tests failed; see ${build.junit.reports} / ${antunit.reports}</fail>
-  </target>
+  <target name="run-tests" depends="junit-tests,antunit-tests,tests-failed"
+          description="--> run unit tests without reports" />
 
   <target name="test-init" depends="probe-offline,check_for_optional_packages">
     <macrodef name="test-junit">



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message