djencks 2004/01/28 18:43:41
Modified: . maven.xml
etc maven.xml
modules/maven-plugin maven.xml
Log:
Provide a way to avoid running clover by using a wrapping goal
Revision Changes Path
1.63 +2 -2 incubator-geronimo/maven.xml
Index: maven.xml
===================================================================
RCS file: /home/cvs/incubator-geronimo/maven.xml,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -r1.62 -r1.63
--- maven.xml 28 Jan 2004 23:03:22 -0000 1.62
+++ maven.xml 29 Jan 2004 02:43:41 -0000 1.63
@@ -177,7 +177,7 @@
</goal>
<goal name="modules:clover">
- <modules:reactor goals="clover" aggregate="false"/>
+ <modules:reactor goals="clover.wrapper" aggregate="false"/>
</goal>
<goal name="modules:clean">
1.27 +14 -8 incubator-geronimo/etc/maven.xml
Index: maven.xml
===================================================================
RCS file: /home/cvs/incubator-geronimo/etc/maven.xml,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- maven.xml 25 Jan 2004 17:55:35 -0000 1.26
+++ maven.xml 29 Jan 2004 02:43:41 -0000 1.27
@@ -147,6 +147,12 @@
</goal>
+ <!-- If there is no src/test directory you can
+ turn off clover in that module by overriding this goal to do nothing -->
+ <goal name="clover.wrapper">
+ <attainGoal name="clover"/>
+ </goal>
+
<preGoal name="clover:test">
<j:set var="cloveroverride" value="true"/>
</preGoal>
@@ -201,13 +207,13 @@
<postGoal name="jar:install">
<ant:available property="geronimoPackagePresent"
file="${basedir}/target/${pom.artifactId}-package-${pom.currentVersion}.jar"/>
<j:if test="${geronimoPackagePresent == 'true'}">
- <ant:property name="jardir__"
value="${maven.repo.local}/${pom.artifactDirectory}/jars"/>
- <ant:mkdir dir="${jardir__}"/>
- <ant:copy
-
file="${basedir}/target/${pom.artifactId}-package-${pom.currentVersion}.jar"
- todir="${jardir__}"
- overwrite="true"
- />
+ <ant:property name="jardir__"
value="${maven.repo.local}/${pom.artifactDirectory}/jars"/>
+ <ant:mkdir dir="${jardir__}"/>
+ <ant:copy
+
file="${basedir}/target/${pom.artifactId}-package-${pom.currentVersion}.jar"
+ todir="${jardir__}"
+ overwrite="true"
+ />
</j:if>
</postGoal>
</project>
1.2 +5 -1 incubator-geronimo/modules/maven-plugin/maven.xml
Index: maven.xml
===================================================================
RCS file: /home/cvs/incubator-geronimo/modules/maven-plugin/maven.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- maven.xml 24 Jan 2004 19:50:04 -0000 1.1
+++ maven.xml 29 Jan 2004 02:43:41 -0000 1.2
@@ -38,5 +38,9 @@
<attainGoal name="build"/>
</goal>
+ <goal name="clover.wrapper">
+ <!-- no src/test, don't run clover -->
+ <!--attainGoal name="clover"/-->
+ </goal>
</project>