You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ac...@apache.org on 2006/03/19 11:56:50 UTC

svn commit: r386953 - /incubator/activemq/trunk/maven.xml

Author: aco
Date: Sun Mar 19 02:56:48 2006
New Revision: 386953

URL: http://svn.apache.org/viewcvs?rev=386953&view=rev
Log:
Added maven goal to ignore test failures.

Modified:
    incubator/activemq/trunk/maven.xml

Modified: incubator/activemq/trunk/maven.xml
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/maven.xml?rev=386953&r1=386952&r2=386953&view=diff
==============================================================================
--- incubator/activemq/trunk/maven.xml (original)
+++ incubator/activemq/trunk/maven.xml Sun Mar 19 02:56:48 2006
@@ -176,12 +176,25 @@
     <ant:echo>+----------------------------------------</ant:echo>
     <delete dir="${maven.repo.local}/activemq"/>
   </goal>
+  
+  <goal name="test:ignore-failures" prereqs="init">
+    <maven:reactor basedir="." goals="test" includes="${maven.multiproject.includes}" ignoreFailures="true"/>
+    
+    <j:if test="${!failedProjects.isEmpty()}">
+        <ant:echo>There are test failures in the following modules:</ant:echo>
+        <j:forEach var="failedProj" items="${failedProjects}">
+            <ant:echo>  ${failedProj} </ant:echo>
+        </j:forEach>
+        <fail message="There are test failures."/>
+    </j:if>
+    
+  </goal>
 
   <goal name="test" prereqs="init">
     <j:set var="goal" value="test"/>
     <attainGoal name="multiproject:goal"/>
   </goal>
-
+  
   <goal name="eclipse" prereqs="init">
     <j:set var="goal" value="eclipse"/>
     <attainGoal name="multiproject:goal"/>