vmassol 2002/06/16 06:21:16
Modified: src/dvsl/xdocs site.dvsl
src/templates/build/plugins/docs build.xml
src/templates/xdocs maven-reports.xml
Added: src/templates/build/plugins/clover Control.vm build.xml
default.properties
Log:
First cut at a Clover plugin. It adds one delegator named "maven:clover-report". ATM
to make it work you need to have the clover jar in your project POM as a dependency
and to also to copy it to your ANT_HOME/lib directory (I'm looking to simplify this).
Then simply type "ant maven:clover-report" and then "ant maven:site" and you should
see a new "Clover Test Coverage" menu item under "Project reports".
Note: For the moment only unit tests are used to generate the report. Integration
unit tests are not included yet in the report (but will be in the next version of the
plugin).
Revision Changes Path
1.52 +3 -0 jakarta-turbine-maven/src/dvsl/xdocs/site.dvsl
Index: site.dvsl
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/src/dvsl/xdocs/site.dvsl,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -r1.51 -r1.52
--- site.dvsl 7 Jun 2002 17:49:03 -0000 1.51
+++ site.dvsl 16 Jun 2002 13:21:16 -0000 1.52
@@ -208,6 +208,9 @@
<div><small><a
href="$relativePath/jdepend-report.html">Metric Results</a></small></div>
<div><small><a
href="$relativePath/checkstyle-report.html">Checkstyle Report</a></small></div>
#end
+ #if
($context.toolbox.fileutil.file("$context.toolbox.docDest/clover").exists())
+ <div><small><a href="$relativePath/clover/index.html">Clover
Test Coverage</a></small></div>
+ #end
#end
#end
</div>
1.18 +77 -76 jakarta-turbine-maven/src/templates/build/plugins/docs/build.xml
Index: build.xml
===================================================================
RCS file:
/home/cvs/jakarta-turbine-maven/src/templates/build/plugins/docs/build.xml,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- build.xml 16 Jun 2002 11:21:04 -0000 1.17
+++ build.xml 16 Jun 2002 13:21:16 -0000 1.18
@@ -13,34 +13,34 @@
<pathelement location="${lib.repo}/maven.jar"/>
</classpath>
</taskdef>
-
+
<create-classpath
listFile="${maven.home}/plugins/core/jars.list"
reference="pre-maven-classpath"
baseDir="${lib.repo}"
/>
-
+
<path id="maven-classpath">
<path refid="pre-maven-classpath"/>
<pathelement location="${lib.repo}/maven.jar"/>
</path>
-
+
<!-- define maven taskdefs, as taskdefs are not yet inheritable? -->
<taskdef resource="maven-taskdefs.properties">
<classpath refid="maven-classpath" />
</taskdef>
-
+
<property name="maven.init" value="true" />
-
+
<!-- call common build file initialization to verify project, update jars
load project and default properties etc -->
<maven-ant antfile="${maven.home}/plugins/core/build-init.xml"
- target="verify-project"
- inheritAll="true"
- inheritRefs="true"
+ target="verify-project"
+ inheritAll="true"
+ inheritRefs="true"
exportAll="true"
exportRefs="true"/>
-
+
</target>
<!-- ================================================================== -->
@@ -61,9 +61,9 @@
<mkdir dir="${maven.gen.docs}"/>
<mkdir dir="${maven.jxr.destdir}"/>
<mkdir dir="${maven.javadoc.destdir}"/>
-
+
<!-- if docbook processing should happen -->
- <available property="maven.docbook-simple.ok"
+ <available property="maven.docbook-simple.ok"
file="${maven.src.docbook-simple}" type="dir"/>
<!-- activity-log -->
@@ -76,7 +76,7 @@
</not>
</and>
</condition>
-
+
<condition property="maven.docs.callback.post-activity-log.ok">
<and>
<available file="${maven.docs.callback.post-activity-log.buildFile}"/>
@@ -86,7 +86,7 @@
</not>
</and>
</condition>
-
+
<!-- change-log -->
<condition property="maven.docs.callback.pre-change-log.ok">
<and>
@@ -97,7 +97,7 @@
</not>
</and>
</condition>
-
+
<condition property="maven.docs.callback.post-change-log.ok">
<and>
<available file="${maven.docs.callback.post-change-log.buildFile}"/>
@@ -107,7 +107,7 @@
</not>
</and>
</condition>
-
+
<!-- cross-ref -->
<condition property="maven.docs.callback.pre-cross-ref.ok">
<and>
@@ -118,7 +118,7 @@
</not>
</and>
</condition>
-
+
<condition property="maven.docs.callback.post-cross-ref.ok">
<and>
<available file="${maven.docs.callback.post-cross-ref.buildFile}"/>
@@ -139,7 +139,7 @@
</not>
</and>
</condition>
-
+
<condition property="maven.docs.callback.post-deploy-site.ok">
<and>
<available file="${maven.docs.callback.post-deploy-site.buildFile}"/>
@@ -160,7 +160,7 @@
</not>
</and>
</condition>
-
+
<condition property="maven.docs.callback.post-docs.ok">
<and>
<available file="${maven.docs.callback.post-docs.buildFile}"/>
@@ -170,7 +170,7 @@
</not>
</and>
</condition>
-
+
<!-- docs-quick -->
<condition property="maven.docs.callback.pre-docs-quick.ok">
<and>
@@ -181,7 +181,7 @@
</not>
</and>
</condition>
-
+
<condition property="maven.docs.callback.post-docs-quick.ok">
<and>
<available file="${maven.docs.callback.post-docs-quick.buildFile}"/>
@@ -202,7 +202,7 @@
</not>
</and>
</condition>
-
+
<condition property="maven.docs.callback.post-fo.ok">
<and>
<available file="${maven.docs.callback.post-fo.buildFile}"/>
@@ -223,7 +223,7 @@
</not>
</and>
</condition>
-
+
<condition property="maven.docs.callback.post-javadocs.ok">
<and>
<available file="${maven.docs.callback.post-javadocs.buildFile}"/>
@@ -244,7 +244,7 @@
</not>
</and>
</condition>
-
+
<condition property="maven.docs.callback.post-pdf.ok">
<and>
<available file="${maven.docs.callback.post-pdf.buildFile}"/>
@@ -254,7 +254,7 @@
</not>
</and>
</condition>
-
+
<!-- site -->
<condition property="maven.docs.callback.pre-site.ok">
<and>
@@ -265,7 +265,7 @@
</not>
</and>
</condition>
-
+
<condition property="maven.docs.callback.post-site.ok">
<and>
<available file="${maven.docs.callback.post-site.buildFile}"/>
@@ -286,7 +286,7 @@
</not>
</and>
</condition>
-
+
<condition property="maven.docs.callback.post-task-list.ok">
<and>
<available file="${maven.docs.callback.post-task-list.buildFile}"/>
@@ -301,20 +301,20 @@
<target
name="docs"
- depends="local-init, pre-docs-callback, jdepend-metrics, junit-report,
+ depends="local-init, pre-docs-callback, jdepend-metrics, junit-report,
checkstyle-report, change-log, activity-log, task-list, generate-xdocs,
docbook-simple, docs:site, post-docs-callback"
description="o Generate html project documentation xdoc sources">
</target>
-
+
<target name="pre-docs-callback" if="maven.docs.callback.pre-docs.ok">
- <maven-ant antfile="${maven.docs.callback.pre-docs.buildFile}"
+ <maven-ant antfile="${maven.docs.callback.pre-docs.buildFile}"
target="${maven.docs.callback.pre-docs.buildTarget}"
inheritRefs="true" exportAll="false" exportRefs="false"/>
</target>
-
+
<target name="post-docs-callback" if="maven.docs.callback.post-docs.ok">
- <maven-ant antfile="${maven.docs.callback.post-docs.buildFile}"
+ <maven-ant antfile="${maven.docs.callback.post-docs.buildFile}"
target="${maven.docs.callback.post-docs.buildTarget}"
inheritRefs="true" exportAll="false" exportRefs="false"/>
</target>
@@ -328,23 +328,23 @@
<target name="pre-docs-quick-callback"
if="maven.docs.callback.pre-docs-quick.ok">
- <maven-ant antfile="${maven.docs.callback.pre-docs-quick.buildFile}"
+ <maven-ant antfile="${maven.docs.callback.pre-docs-quick.buildFile}"
target="${maven.docs.callback.pre-docs-quick.buildTarget}"
inheritRefs="true" exportAll="false" exportRefs="false"/>
</target>
-
+
<target name="post-docs-quick-callback"
if="maven.docs.callback.post-docs-quick.ok">
- <maven-ant antfile="${maven.docs.callback.post-docs-quick.buildFile}"
+ <maven-ant antfile="${maven.docs.callback.post-docs-quick.buildFile}"
target="${maven.docs.callback.post-docs-quick.buildTarget}"
inheritRefs="true" exportAll="false" exportRefs="false"/>
</target>
-
+
<target
name="jdepend-metrics"
description="o Generiates html from jdepend metrics">
- <maven-ant antfile="${maven.home}/plugins/metrics/build.xml"
+ <maven-ant antfile="${maven.home}/plugins/metrics/build.xml"
target="jdepend-xml"
inheritRefs="true" inheritAll="true"
exportRefs="true" exportAll="true" />
@@ -378,14 +378,14 @@
<target name="pre-cross-ref-callback"
if="maven.docs.callback.pre-cross-ref.ok">
- <maven-ant antfile="${maven.docs.callback.pre-cross-ref.buildFile}"
+ <maven-ant antfile="${maven.docs.callback.pre-cross-ref.buildFile}"
target="${maven.docs.callback.pre-cross-ref.buildTarget}"
inheritRefs="true" exportAll="false" exportRefs="false"/>
</target>
-
+
<target name="post-cross-ref-callback"
if="maven.docs.callback.post-cross-ref.ok">
- <maven-ant antfile="${maven.docs.callback.post-cross-ref.buildFile}"
+ <maven-ant antfile="${maven.docs.callback.post-cross-ref.buildFile}"
target="${maven.docs.callback.post-cross-ref.buildTarget}"
inheritRefs="true" exportAll="false" exportRefs="false"/>
</target>
@@ -421,14 +421,14 @@
<target name="pre-task-list-callback"
if="maven.docs.callback.pre-task-list.ok">
- <maven-ant antfile="${maven.docs.callback.pre-task-list.buildFile}"
+ <maven-ant antfile="${maven.docs.callback.pre-task-list.buildFile}"
target="${maven.docs.callback.pre-task-list.buildTarget}"
inheritRefs="true" exportAll="false" exportRefs="false"/>
</target>
-
+
<target name="post-task-list-callback"
if="maven.docs.callback.post-task-list.ok">
- <maven-ant antfile="${maven.docs.callback.post-task-list.buildFile}"
+ <maven-ant antfile="${maven.docs.callback.post-task-list.buildFile}"
target="${maven.docs.callback.post-task-list.buildTarget}"
inheritRefs="true" exportAll="false" exportRefs="false"/>
</target>
@@ -450,19 +450,19 @@
<target
name="change-log"
- depends="local-init, pre-change-log-callback, do-change-log,
+ depends="local-init, pre-change-log-callback, do-change-log,
post-change-log-callback"/>
<target name="pre-change-log-callback"
if="maven.docs.callback.pre-change-log.ok">
- <maven-ant antfile="${maven.docs.callback.pre-change-log.buildFile}"
+ <maven-ant antfile="${maven.docs.callback.pre-change-log.buildFile}"
target="${maven.docs.callback.pre-change-log.buildTarget}"
inheritRefs="true" exportAll="false" exportRefs="false"/>
</target>
-
+
<target name="post-change-log-callback"
if="maven.docs.callback.post-change-log.ok">
- <maven-ant antfile="${maven.docs.callback.post-change-log.buildFile}"
+ <maven-ant antfile="${maven.docs.callback.post-change-log.buildFile}"
target="${maven.docs.callback.post-change-log.buildTarget}"
inheritRefs="true" exportAll="false" exportRefs="false"/>
</target>
@@ -474,7 +474,7 @@
baseDir="."
output="${maven.gen.docs}/changelog.xml"
range="${maven.changelog.range}"
- factory="${maven.changelog.factory}"
+ factory="${maven.changelog.factory}"
/>
</target>
@@ -490,14 +490,14 @@
<target name="pre-activity-log-callback"
if="maven.docs.callback.pre-activity-log.ok">
- <maven-ant antfile="${maven.docs.callback.pre-activity-log.buildFile}"
+ <maven-ant antfile="${maven.docs.callback.pre-activity-log.buildFile}"
target="${maven.docs.callback.pre-activity-log.buildTarget}"
inheritRefs="true" exportAll="false" exportRefs="false"/>
</target>
-
+
<target name="post-activity-log-callback"
if="maven.docs.callback.post-activity-log.ok">
- <maven-ant antfile="${maven.docs.callback.post-activity-log.buildFile}"
+ <maven-ant antfile="${maven.docs.callback.post-activity-log.buildFile}"
target="${maven.docs.callback.post-activity-log.buildTarget}"
inheritRefs="true" exportAll="false" exportRefs="false"/>
</target>
@@ -511,7 +511,7 @@
range="${maven.activitylog.range}"
factory="${maven.changelog.factory}"
/>
-
+
<!-- Transform the activity log into developer activity first -->
<dvsl
basedir="${maven.build.dir}"
@@ -527,7 +527,7 @@
<tool name="toolbox.string.range" value="${maven.activitylog.range}"/>
<tool name="toolbox.string.basedir" value="${basedir}"/>
</dvsl>
-
+
<!-- Transform the activity log into file activity-->
<dvsl
extension=".xml"
@@ -542,7 +542,7 @@
<tool name="toolbox.string.range" value="${maven.activitylog.range}"/>
</dvsl>
-
+
</target>
<!-- ================================================================== -->
<!-- P R O J E C T D O C U M E N T A T I O N -->
@@ -567,10 +567,10 @@
<!-- ================================================================== -->
<target name="docbook-simple" depends="local-init" if="maven.docbook-simple.ok"
description="Transform any docbook-simple source into xdocs for later use">
-
+
<style basedir="${maven.src.docbook-simple}"
destdir="${maven.gen.docs}" extension=".xml"
- style="${maven.home}/plugins/docs/docbook2document.xsl"
+ style="${maven.home}/plugins/docs/docbook2document.xsl"
includes="**/*.xml, **/*.sgml"/>
</target>
@@ -597,6 +597,7 @@
<!-- Need to add the maven jar to load the toolbox -->
<classpath refid="maven-classpath"/>
<tool name="toolbox.string.basedir" value="${basedir}"/>
+ <tool name="toolbox.string.docDest" value="${maven.docs.dest}"/>
<tool name="toolbox.string.docSrc" value="${maven.docs.src}"/>
<tool name="toolbox.string.genDoc" value="${maven.gen.docs}"/>
<tool name="toolbox.string.srcDir" value="${maven.src.dir}"/>
@@ -678,7 +679,7 @@
<filter token="UI_SOURCE_BORDER_BOTTOM"
value="${maven.ui.source.border.bottom}"/>
<filter token="UI_SOURCE_BORDER_RIGHT"
value="${maven.ui.source.border.right}"/>
<filter token="UI_SOURCE_BORDER_LEFT"
value="${maven.ui.source.border.left}"/>
-
+
<filter token="UI_NAVCOL_BACKGROUND" value="${maven.ui.navcol.background}"/>
<filter token="UI_NAVCOL_FOREGROUND" value="${maven.ui.navcol.foreground}"/>
<filter token="UI_NAVCOL_BACKGROUND_NS4"
value="${maven.ui.navcol.background.ns4}"/>
@@ -712,17 +713,17 @@
description="o Generate XSL:FO project documentation"/>
<target name="pre-fo-callback" if="maven.docs.callback.pre-fo.ok">
- <maven-ant antfile="${maven.docs.callback.pre-fo.buildFile}"
+ <maven-ant antfile="${maven.docs.callback.pre-fo.buildFile}"
target="${maven.docs.callback.pre-fo.buildTarget}"
inheritRefs="true" exportAll="false" exportRefs="false"/>
</target>
-
+
<target name="post-fo-callback" if="maven.docs.callback.post-fo.ok">
- <maven-ant antfile="${maven.docs.callback.post-fo.buildFile}"
+ <maven-ant antfile="${maven.docs.callback.post-fo.buildFile}"
target="${maven.docs.callback.post-fo.buildTarget}"
inheritRefs="true" exportAll="false" exportRefs="false"/>
</target>
-
+
<target name="do-fo">
<mkdir dir="${maven.docs.dest}"/>
@@ -755,17 +756,17 @@
description="o Generate PDF project documentation"/>
<target name="pre-pdf-callback" if="maven.docs.callback.pre-pdf.ok">
- <maven-ant antfile="${maven.docs.callback.pre-pdf.buildFile}"
+ <maven-ant antfile="${maven.docs.callback.pre-pdf.buildFile}"
target="${maven.docs.callback.pre-pdf.buildTarget}"
inheritRefs="true" exportAll="false" exportRefs="false"/>
</target>
-
+
<target name="post-pdf-callback" if="maven.docs.callback.post-pdf.ok">
- <maven-ant antfile="${maven.docs.callback.post-pdf.buildFile}"
+ <maven-ant antfile="${maven.docs.callback.post-pdf.buildFile}"
target="${maven.docs.callback.post-pdf.buildTarget}"
inheritRefs="true" exportAll="false" exportRefs="false"/>
</target>
-
+
<target name="do-pdf">
<java classname="org.apache.fop.apps.Fop" fork="yes">
@@ -790,17 +791,17 @@
depends="local-init, pre-site-callback, do-site, post-site-callback"/>
<target name="pre-site-callback" if="maven.docs.callback.pre-site.ok">
- <maven-ant antfile="${maven.docs.callback.pre-site.buildFile}"
+ <maven-ant antfile="${maven.docs.callback.pre-site.buildFile}"
target="${maven.docs.callback.pre-site.buildTarget}"
inheritRefs="true" exportAll="false" exportRefs="false"/>
</target>
-
+
<target name="post-site-callback" if="maven.docs.callback.post-site.ok">
- <maven-ant antfile="${maven.docs.callback.post-site.buildFile}"
+ <maven-ant antfile="${maven.docs.callback.post-site.buildFile}"
target="${maven.docs.callback.post-site.buildTarget}"
inheritRefs="true" exportAll="false" exportRefs="false"/>
</target>
-
+
<target
name="do-site"
depends="docs,javadocs,cross-ref"/>
@@ -833,19 +834,19 @@
<target name="pre-deploy-site-callback"
if="maven.docs.callback.pre-deploy-site.ok">
- <maven-ant antfile="${maven.docs.callback.pre-deploy-site.buildFile}"
+ <maven-ant antfile="${maven.docs.callback.pre-deploy-site.buildFile}"
target="${maven.docs.callback.pre-deploy-site.buildTarget}"
inheritRefs="true" exportAll="false" exportRefs="false"/>
</target>
-
+
<target name="post-deploy-site-callback"
if="maven.docs.callback.post-deploy-site.ok">
- <maven-ant antfile="${maven.docs.callback.post-deploy-site.buildFile}"
+ <maven-ant antfile="${maven.docs.callback.post-deploy-site.buildFile}"
target="${maven.docs.callback.post-deploy-site.buildTarget}"
inheritRefs="true" exportAll="false" exportRefs="false"/>
</target>
-
+
<target
name="do-deploy-site"
if="maven.username">
@@ -881,19 +882,19 @@
<target
name="javadocs"
- depends="local-init, pre-javadocs-callback, do-javadocs,
+ depends="local-init, pre-javadocs-callback, do-javadocs,
post-javadocs-callback"
description="o Generates the Javadoc API documentation"/>
<target name="pre-javadocs-callback" if="maven.docs.callback.pre-javadocs.ok">
- <maven-ant antfile="${maven.docs.callback.pre-javadocs.buildFile}"
+ <maven-ant antfile="${maven.docs.callback.pre-javadocs.buildFile}"
target="${maven.docs.callback.pre-javadocs.buildTarget}"
inheritRefs="true" exportAll="false" exportRefs="false"/>
</target>
-
+
<target name="post-javadocs-callback"
if="maven.docs.callback.post-javadocs.ok">
- <maven-ant antfile="${maven.docs.callback.post-javadocs.buildFile}"
+ <maven-ant antfile="${maven.docs.callback.post-javadocs.buildFile}"
target="${maven.docs.callback.post-javadocs.buildTarget}"
inheritRefs="true" exportAll="false" exportRefs="false"/>
</target>
1.8 +4 -0 jakarta-turbine-maven/src/templates/xdocs/maven-reports.xml
Index: maven-reports.xml
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/src/templates/xdocs/maven-reports.xml,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- maven-reports.xml 7 Jun 2002 17:49:03 -0000 1.7
+++ maven-reports.xml 16 Jun 2002 13:21:16 -0000 1.8
@@ -75,6 +75,10 @@
</td>
</tr>
#end
+ <!--
+ todo vmassol : Add Clover test coverage report description. I need
+ to figure out what variable I can use for the conditional test.
+ -->
</table>
</subsection>
</section>
1.1
jakarta-turbine-maven/src/templates/build/plugins/clover/Control.vm
Index: Control.vm
===================================================================
## -------------------------------------------------------
## Control file for Maven Clover plug-in
## -------------------------------------------------------
## -------------------------------------------------------
## Add build files to the list
## -------------------------------------------------------
$buildElements.add("plugins/$plugin/build.xml")
## -------------------------------------------------------
## Make the list of delegators
## -------------------------------------------------------
$delegators.put("clover-report", "plugins/$plugin/build.xml")
1.1
jakarta-turbine-maven/src/templates/build/plugins/clover/build.xml
Index: build.xml
===================================================================
<?xml version="1.0"?>
<project name="maven-clover" default="clover-test" basedir="..">
<!-- ================================================================== -->
<!-- I N I T -->
<!-- ================================================================== -->
<target name="init" unless="maven.init">
<taskdef
name="create-classpath"
classname="org.apache.maven.ant.CreateClasspath">
<classpath>
<pathelement location="${lib.repo}/maven.jar"/>
</classpath>
</taskdef>
<create-classpath
listFile="${maven.home}/plugins/core/jars.list"
reference="pre-maven-classpath"
baseDir="${lib.repo}"
/>
<path id="maven-classpath">
<path refid="pre-maven-classpath"/>
<pathelement location="${lib.repo}/maven.jar"/>
</path>
<!-- define maven taskdefs, as taskdefs are not yet inheritable? -->
<taskdef resource="maven-taskdefs.properties">
<classpath refid="maven-classpath" />
</taskdef>
<property name="maven.init" value="true" />
<!-- call common build file initialization to verify project, update jars
load project and default properties etc -->
<maven-ant antfile="${maven.home}/plugins/core/build-init.xml"
target="verify-project"
inheritAll="true"
inheritRefs="true"
exportAll="true"
exportRefs="true"/>
</target>
<!-- ================================================================== -->
<!-- L O C A L I N I T -->
<!-- ================================================================== -->
<target
name="local-init"
depends="init">
<!-- Pick up plugin specific defaults -->
<property file="${maven.home}/plugins/clover/default.properties"/>
<!-- The clover.initstring must be defined and must point to the database
file -->
<property name="clover.initstring"
value="${maven.clover.database.dir}/clover_coverage.db"/>
<mkdir dir="${maven.build.clover}"/>
<mkdir dir="${maven.build.clover.classes}"/>
<mkdir dir="${maven.clover.database.dir}"/>
</target>
<!-- =================================================================== -->
<!-- C L O V E R C O M P I L E -->
<!-- =================================================================== -->
<target
name="clover-compile"
depends="local-init">
<!-- Must prepare the sources first -->
<maven-ant antfile="${maven.home}/plugins/core/build.xml"
target="compile"
inheritAll="true"
inheritRefs="true"
exportAll="true"
exportRefs="true"/>
<javac
destdir="${maven.build.clover.classes}"
excludes="**/package.html"
debug="${maven.compile.debug}"
deprecation="${maven.compile.deprecation}"
optimize="${maven.compile.optimize}"
compiler="org.apache.tools.ant.taskdefs.CloverCompilerAdapter">
<src>
<path refid="maven.compile.src.set"/>
</src>
<classpath>
<path refid="maven.dependency.classpath"/>
<pathelement path="${maven.build.dest}"/>
</classpath>
</javac>
</target>
<!-- =================================================================== -->
<!-- Run unit tests with Clover -->
<!-- =================================================================== -->
<target
name="clover-test"
depends="clover-compile"
if="maven.unitTestSourceDirectory">
<maven-ant antfile="${maven.home}/plugins/test/build.xml"
target="compile"
inheritAll="true"
inheritRefs="true"
exportAll="true"
exportRefs="true"/>
<junit printSummary="yes" failureProperty="maven.test.failure"
fork="${maven.junit.fork}" dir="${maven.junit.dir}">
<sysproperty key="basedir" value="${basedir}"/>
<formatter type="xml"/>
<formatter type="plain" usefile="${maven.junit.usefile}"/>
<classpath>
<path refid="maven.dependency.classpath"/>
<pathelement location="${maven.build.clover.classes}"/>
<pathelement location="${maven.test.dest}"/>
</classpath>
<batchtest todir="${maven.test.reportsDirectory}">
<fileset dir="${maven.unitTestSourceDirectory}">
<patternset refid="maven.unit.test.set"/>
</fileset>
</batchtest>
</junit>
</target>
<!-- =================================================================== -->
<!-- C L O V E R R E P O R T -->
<!-- =================================================================== -->
<target
name="clover-report"
depends="clover-test"
description="o Generate test coverage reports with Clover">
<mkdir dir="${maven.docs.dest}/clover"/>
<java classname="com.cortexeb.tools.clover.reporters.html.HtmlReporter"
fork="true">
<arg line="--outputdir ${maven.docs.dest}/clover"/>
<arg line="--showSrc"/>
<arg line="--initstring ${clover.initstring}"/>
<arg line="--title '${maven.name} - ${maven.currentVersion}'"/>
<classpath>
<path refid="maven-classpath"/>
<pathelement path="${java.class.path}"/>
</classpath>
</java>
</target>
</project>
1.1
jakarta-turbine-maven/src/templates/build/plugins/clover/default.properties
Index: default.properties
===================================================================
# -------------------------------------------------------------------
# Default Maven properties for the Clover Plugin
# -------------------------------------------------------------------
# These are the properties that we believe are immutable so we
# keep them apart from the project specific properties.
# -------------------------------------------------------------------
maven.build.clover = ${maven.build.dir}/clover
maven.build.clover.classes = ${maven.build.clover}/classes
# Location of Clover database
# (used only if maven.compile.clover = true)
maven.clover.database.dir = ${maven.build.clover}/database
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>