From: Carlos S. <car...@us...> - 2005-06-15 17:59:29
|
carlossg 05/06/15 10:59:18 Modified: cobertura plugin.jelly cobertura/xdocs goals.xml Log: Changed cobertura:html-report to cobertura:report goal and generate also xml report Revision Changes Path 1.4 +26 -11 maven-plugins/cobertura/plugin.jelly Index: plugin.jelly =================================================================== RCS file: /cvsroot/maven-plugins/maven-plugins/cobertura/plugin.jelly,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- plugin.jelly 15 Jun 2005 17:23:24 -0000 1.3 +++ plugin.jelly 15 Jun 2005 17:59:17 -0000 1.4 @@ -54,9 +54,9 @@ <!-- D E F A U L T R E P O R T --> <!-- ================================================================== --> <goal name="maven-cobertura-plugin:report" - description="Run the default report (html)."> + description="Run the default report (xml and html)."> - <attainGoal name="cobertura:html-report" /> + <attainGoal name="cobertura:report" /> </goal> @@ -135,16 +135,16 @@ <!-- D E F A U L T G O A L --> <!-- ================================================================== --> <goal name="cobertura" - description="Generate HTML test coverage reports with Cobertura" - prereqs="cobertura:html-report" + description="Generate test coverage reports with Cobertura" + prereqs="cobertura:report" /> <!-- ================================================================== --> <!-- R E P O R T G O A L --> <!-- ================================================================== --> - <goal name="cobertura:html-report" - description="Generate HTML test coverage reports with Cobertura"> + <goal name="cobertura:report" + description="Generate test coverage reports with Cobertura"> <j:choose> @@ -167,11 +167,10 @@ </ant:copy> </j:if> - <ant:cobertura-report srcdir="${sourceDir}" destdir="${coberturaDocs}" datafile="${maven.cobertura.datafile}"> - <ant:classpath> - <ant:path refid="cobertura.classpath"/> - </ant:classpath> - </ant:cobertura-report> + <j:set var="maven.cobertura.format" value="html" /> + <attainGoal name="cobertura:report-internal"/> + <j:set var="maven.cobertura.format" value="xml" /> + <attainGoal name="cobertura:report-internal"/> <attainGoal name="cobertura:off"/> @@ -192,4 +191,20 @@ </goal> + + <!-- ================================================================== --> + <!-- I N T E R N A L R E P O R T G O A L --> + <!-- ================================================================== --> + <goal name="cobertura:report-internal" + description="Generate test coverage reports with Cobertura in maven.cobertura.format format"> + + <ant:cobertura-report srcdir="${sourceDir}" destdir="${coberturaDocs}" + datafile="${maven.cobertura.datafile}" format="${maven.cobertura.format}"> + <ant:classpath> + <ant:path refid="cobertura.classpath"/> + </ant:classpath> + </ant:cobertura-report> + + </goal> + </project> 1.2 +7 -3 maven-plugins/cobertura/xdocs/goals.xml Index: goals.xml =================================================================== RCS file: /cvsroot/maven-plugins/maven-plugins/cobertura/xdocs/goals.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- goals.xml 10 Jun 2005 06:24:56 -0000 1.1 +++ goals.xml 15 Jun 2005 17:59:18 -0000 1.2 @@ -29,14 +29,18 @@ <description>Generate HTML test coverage reports with Cobertura</description> </goal> <goal> - <name>cobertura:html-report</name> - <description>Generate HTML test coverage reports with Cobertura</description> + <name>cobertura:report</name> + <description>Generate HTML and XML test coverage reports with Cobertura</description> </goal> <goal> <name>cobertura:on</name> <description>perform the coverage analysis</description> </goal> <goal> + <name>cobertura:off</name> + <description>restore values after the coverage analysis</description> + </goal> + <goal> <name>maven-cobertura-plugin:deregister</name> <description>Deregister the cobertura plugin</description> </goal> @@ -46,7 +50,7 @@ </goal> <goal> <name>maven-cobertura-plugin:report</name> - <description>Run the default report (html).</description> + <description>Run the default report (cobertura:report).</description> </goal> </goals> </body> |