Added maven goal to ignore test failures.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@386953 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adrian T. Co 2006-03-19 10:56:48 +00:00
parent d5b3b819ba
commit 774cdcf8b5
1 changed files with 14 additions and 1 deletions

View File

@ -177,6 +177,19 @@
<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"/>