|
From: Carlos S. <car...@us...> - 2005-10-06 21:29:30
|
carlossg 05/10/06 14:29:24
Modified: cobertura/xdocs changes.xml properties.xml
cobertura plugin.jelly
Log:
Add maven.cobertura.ignoreregex property
Revision Changes Path
1.14 +1 -0 maven-plugins/cobertura/xdocs/changes.xml
Index: changes.xml
===================================================================
RCS file: /cvsroot/maven-plugins/maven-plugins/cobertura/xdocs/changes.xml,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- changes.xml 6 Oct 2005 21:26:24 -0000 1.13
+++ changes.xml 6 Oct 2005 21:29:24 -0000 1.14
@@ -23,6 +23,7 @@
</properties>
<body>
<release version="1.2" date="in CVS">
+ <action dev="carlossg" type="add">Add maven.cobertura.ignoreregex property.</action>
<action dev="carlossg" type="add">Added maven.cobertura.check.totallinerate and maven.cobertura.check.totalbranchrate properties.</action>
<action dev="carlossg" type="fix">Fixed cobertura check goal always checking against 50%.</action>
</release>
1.8 +9 -0 maven-plugins/cobertura/xdocs/properties.xml
Index: properties.xml
===================================================================
RCS file: /cvsroot/maven-plugins/maven-plugins/cobertura/xdocs/properties.xml,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- properties.xml 6 Oct 2005 21:26:24 -0000 1.7
+++ properties.xml 6 Oct 2005 21:29:24 -0000 1.8
@@ -64,6 +64,15 @@
</td>
</tr>
<tr>
+ <td>maven.cobertura.ignoreregex</td>
+ <td>Not defined</td>
+ <td>Yes</td>
+ <td>
+ Tell Cobertura to ignore certain classes using a regular expression.
+ eg. to ignore all calls to commons-logging you can use <code>org.apache.commons.logging.*</code>.
+ </td>
+ </tr>
+ <tr>
<td>maven.cobertura.junit.fork</td>
<td>yes</td>
<td>Yes</td>
1.16 +5 -0 maven-plugins/cobertura/plugin.jelly
Index: plugin.jelly
===================================================================
RCS file: /cvsroot/maven-plugins/maven-plugins/cobertura/plugin.jelly,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- plugin.jelly 6 Oct 2005 21:26:24 -0000 1.15
+++ plugin.jelly 6 Oct 2005 21:29:24 -0000 1.16
@@ -105,6 +105,11 @@
<maven:addPath id="maven.dependency.classpath" refid="cobertura.classpath"/>
<ant:cobertura-instrument todir="${maven.cobertura.instrumentation}" datafile="${maven.cobertura.datafile}">
+
+ <j:if test="${not empty(context.getVariable('maven.cobertura.ignoreregex'))}">
+ <ant:ignore regex="${maven.cobertura.ignoreregex}"/>
+ </j:if>
+
<ant:fileset dir="${maven.build.dest}"
includes="${maven.cobertura.instrumentation.includes}"
excludes="${maven.cobertura.instrumentation.excludes}"/>
|