From: Carlos S. <car...@us...> - 2005-07-19 04:14:58
|
carlossg 05/07/18 21:14:52 Modified: cobertura plugin.jelly plugin.properties cobertura/xdocs goals.xml properties.xml Log: Disable check report by default because breaks in maven 1.0.2 Revision Changes Path 1.11 +3 -1 maven-plugins/cobertura/plugin.jelly Index: plugin.jelly =================================================================== RCS file: /cvsroot/maven-plugins/maven-plugins/cobertura/plugin.jelly,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- plugin.jelly 14 Jul 2005 05:12:28 -0000 1.10 +++ plugin.jelly 19 Jul 2005 04:14:52 -0000 1.11 @@ -284,7 +284,9 @@ </j:if> <!-- report the check failures --> - <attainGoal name="cobertura:check-report"/> + <j:if test="${maven.cobertura.check.report}"> + <attainGoal name="cobertura:check-report"/> + </j:if> </j:when> 1.6 +3 -0 maven-plugins/cobertura/plugin.properties Index: plugin.properties =================================================================== RCS file: /cvsroot/maven-plugins/maven-plugins/cobertura/plugin.properties,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- plugin.properties 12 Jul 2005 21:22:16 -0000 1.5 +++ plugin.properties 19 Jul 2005 04:14:52 -0000 1.6 @@ -26,3 +26,6 @@ maven.cobertura.check.line=50 maven.cobertura.check.branch=50 maven.cobertura.check.file=${maven.cobertura.dir}/check.txt + +# don't generate the report by default, seems that it breaks in maven < 1.1 +maven.cobertura.check.report=false 1.6 +1 -0 maven-plugins/cobertura/xdocs/goals.xml Index: goals.xml =================================================================== RCS file: /cvsroot/maven-plugins/maven-plugins/cobertura/xdocs/goals.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- goals.xml 12 Jul 2005 22:09:47 -0000 1.5 +++ goals.xml 19 Jul 2005 04:14:52 -0000 1.6 @@ -33,6 +33,7 @@ <description> Generate HTML and XML test coverage reports with Cobertura and a list of tests that don't meet the minimum test coverage requirements + (if the flag maven.cobertura.check.report is true) </description> </goal> <goal> 1.6 +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.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- properties.xml 12 Jul 2005 21:22:16 -0000 1.5 +++ properties.xml 19 Jul 2005 04:14:52 -0000 1.6 @@ -81,6 +81,15 @@ </td> </tr> <tr> + <td>maven.cobertura.check.report</td> + <td>false</td> + <td>Yes</td> + <td> + Whether or not the cobertura check report is generated. Disabled by default because + seems that it doesn't work on maven 1.0.x (works in 1.1-beta-1) + </td> + </tr> + <tr> <td>maven.cobertura.check.line</td> <td>50</td> <td>Yes</td> |