From 4cf07452422d01a9eef5b8c85ff9b3011bbd208a Mon Sep 17 00:00:00 2001 From: bwalding Date: Tue, 10 Jun 2003 13:22:47 +0000 Subject: [PATCH] I'm not going to pretend that this works very well. * Flushpolicy - it's just a hack that we have a 500ms flush interval. Should be allowed to flush with an ant task * Basically clover 1.2 sort of works, want to check something that reasonably works in before I break it again. PR: MAVEN-372 git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113481 13f79535-47bb-0310-9956-ffa450edef68 --- clover/plugin.jelly | 124 +++++++++++++++++------------------- clover/plugin.properties | 9 --- clover/project.xml | 13 +--- clover/xdocs/properties.xml | 7 ++ 4 files changed, 69 insertions(+), 84 deletions(-) diff --git a/clover/plugin.jelly b/clover/plugin.jelly index e470b541..c8ba01c3 100644 --- a/clover/plugin.jelly +++ b/clover/plugin.jelly @@ -4,35 +4,28 @@ xmlns:j="jelly:core" xmlns:ant="jelly:ant" xmlns:maven="jelly:maven" + xmlns:java="java" + xmlns:test="test" xmlns:doc="doc"> - - + + + + + + + + - + @@ -58,36 +51,44 @@ - + description="Create the needed directory structure"> + + + + - ${pom.getContext().setVariable('build.compiler',"org.apache.tools.ant.taskdefs.CloverCompilerAdapter")} + Setting Clover compiler + + Now using primary build.compiler : ${build.compiler} + ${pom.getContext().removeVariable('build.compiler')} - - - + + + - - - - ${pom.getPluginContext('maven-java-plugin').setVariable('maven.build.dest',tmp)} - ${pom.getPluginContext('maven-test-plugin').setVariable('maven.build.dest',tmp)} + + + + ${pom.getPluginContext('maven-java-plugin').setVariable('maven.build.dest',tmp)} + + ${pom.getPluginContext('maven-test-plugin').setVariable('maven.build.dest',tmp)} @@ -98,43 +99,37 @@ description="Generate HTML test coverage reports with Clover" prereqs="clover:html-report"/> - - - + + + + - + + - + + + + - - - - - - - - - - - - - + + + + + + + @@ -144,7 +139,6 @@ - diff --git a/clover/plugin.properties b/clover/plugin.properties index 09990f3e..07118e8b 100644 --- a/clover/plugin.properties +++ b/clover/plugin.properties @@ -7,13 +7,4 @@ maven.build.clover = ${maven.build.dir}/clover maven.build.clover.classes = ${maven.build.clover}/classes -#maven.build.clover.src = ${maven.build.clover}/src -#clover.tmpdir = ${maven.build.clover.src} - -# Location of Clover database -# (used only if maven.compile.clover = true) maven.clover.database.dir = ${maven.build.clover}/database - -clover.preserve=true -clover.flushpolicy=interval -clover.flushpolicy.interval=10 diff --git a/clover/project.xml b/clover/project.xml index f9c28eb0..b9f339c0 100644 --- a/clover/project.xml +++ b/clover/project.xml @@ -5,7 +5,7 @@ 3 maven-clover-plugin Maven Clover Plug-in - 1.2-SNAPSHOT + 1.3-SNAPSHOT Java Project Management Tools http://maven.apache.org/reference/plugins/clover/ @@ -72,17 +72,10 @@ clover - 1.0 + 1.2 root - - - velocity - 1.3 - - root.maven - - + diff --git a/clover/xdocs/properties.xml b/clover/xdocs/properties.xml index ec32b273..9e11e95c 100644 --- a/clover/xdocs/properties.xml +++ b/clover/xdocs/properties.xml @@ -44,6 +44,13 @@ Specifies the location of the Clover database. The default value is ${maven.build.dir}/clover/database. + + + maven.clover.report.format + No (default "html") + + Specifies the format of the Clover report output +