Revision: 6079
Author: [email protected]
Date: Thu Sep  3 12:14:51 2009
Log: giving gwt.junit a haltonfailure attribute.

Review by: jlabanca
http://code.google.com/p/google-web-toolkit/source/detail?r=6079

Modified:
  /trunk/common.ant.xml

=======================================
--- /trunk/common.ant.xml       Mon Aug 24 10:44:29 2009
+++ /trunk/common.ant.xml       Thu Sep  3 12:14:51 2009
@@ -178,6 +178,7 @@
      <attribute name="test.reports" default="@{test.out}/reports" />
      <attribute name="test.emma.coverage"  
default="@{test.out}/emma-coverage" />
      <attribute name="test.cases" default="" />
+    <attribute name="haltonfailure" default="true" />
      <element name="extraclasspaths" optional="true" />
      <sequential>
        <taskdef name="junit"  
classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask">
@@ -245,7 +246,13 @@
          </report>
        </emma>

-      <fail message="One or more junit tests failed" if="junit.failure" />
+      <condition property="junit.stop.build" value="true">
+        <and>
+          <istrue value="@{haltonfailure}"/>
+          <isset property="${junit.failure}"/>
+        </and>
+      </condition>
+      <fail message="One or more junit tests failed" if="junit.stop.build"  
/>
      </sequential>
    </macrodef>


--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to