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/29 02:41:08 UTC
svn commit: r389642 - /incubator/activemq/trunk/maven.xml
Author: aco
Date: Tue Mar 28 16:41:07 2006
New Revision: 389642
URL: http://svn.apache.org/viewcvs?rev=389642&view=rev
Log:
Added a continuum goal to build and 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=389642&r1=389641&r2=389642&view=diff
==============================================================================
--- incubator/activemq/trunk/maven.xml (original)
+++ incubator/activemq/trunk/maven.xml Tue Mar 28 16:41:07 2006
@@ -177,44 +177,37 @@
<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> </ant:echo>
- <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="test:no-ignore-failures" prereqs="init">
- <j:set var="goal" value="test"/>
- <attainGoal name="multiproject:goal"/>
- </goal>
- <goal name="test" prereqs="">
- <j:if test="${ignoreTest == 'true'}">
- <!--<ant:echo>IGNORE TEST</ant:echo>-->
- <attainGoal name="test:ignore-failures"/>
+ <preGoal name="continuum:default">
+ <j:set var="generateBuildReports" value="${buildreport.generate}"/>
+ <j:if test="${generateBuildReports == 'true'}">
+ <attainGoal name="build-failure-report:init-report"/>
</j:if>
- <j:if test="${ignoreTest == 'false' || ignoreTest == null}">
- <!--<ant:echo>DO NOT IGNORE TEST</ant:echo>-->
- <attainGoal name="test:no-ignore-failures"/>
- </j:if>
- </goal>
-
-
+ </preGoal>
+ <goal name="continuum:default" prereqs="init">
+ <j:choose>
+ <j:when test="${ignoreTestFailures==true}">
+ <maven:reactor basedir="." goals="default" includes="${maven.multiproject.includes}" ignoreFailures="true"/>
+ <j:if test="${!failedProjects.isEmpty()}">
+ <ant:echo> </ant:echo>
+ <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>
+ </j:when>
+ <j:otherwise>
+ <maven:reactor basedir="." goals="default" includes="${maven.multiproject.includes}" ignoreFailures="false"/>
+ </j:otherwise>
+ </j:choose>
+ </goal>
+
<goal name="eclipse" prereqs="init">
<j:set var="goal" value="eclipse"/>
<attainGoal name="multiproject:goal"/>