activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r386953 - /incubator/activemq/trunk/maven.xml
Date Sun, 19 Mar 2006 10:56:50 GMT
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"/>



Mime
View raw message