Hi,

after setting the following properties in project.properties

maven.clover.history.dir=/my/history/dir
maven.clover.database=/my/history/dir/database/clover_coverage.db

I use it in a pre goal in maven.xml:

  <preGoal name="somegoal">
    <attainGoal name="clover:on" />
    <attainGoal name="clover:test" />
    <attainGoal name="clover:save-history" />
    <attainGoal name="clover:off" />
  </preGoal>

which works fine.  (in another, later called, goal I use the 'clover' goal 
which generates the report and history report)

regards, Volker



"Maven Users List" <[email protected]> schrieb am 08.03.05 17:22:44:
> 
> How are we supposed to use the new history feature?
> 
> 
> On Fri, 4 Mar 2005 22:02:54 +0100, Vincent Massol <[EMAIL PROTECTED]> wrote:
> > The maven team is pleased to announce the Maven Clover Plugin 1.8 release!
> > 
> > http://maven.apache.org/reference/plugins/clover/
> > 
> > The Clover plugin allows measuring test coverage using Clover
> > (http://www.cenqua.com/clover).
> > 
> > Changes in this version include:
> > 
> >   New Features:
> > 
> > o Added support for historical reports by adding a new
> >   clover:save-historygoal that saves a Clover history point. The history
> >   points are then used by clover:reportto generate history reports 
> > (including
> >   a link on the Maven-generated website).
> > o Add support for method, statement and block context filtering through the
> >   following properties: maven.clover.context.block.names,
> >   maven.clover.context.method.names, maven.clover.context.method.regexps,
> >   maven.clover.context.statement.namesand
> >   maven.clover.context.statement.regexps.
> > o Added new clover:checkgoal that verifies if the test coverage if above a
> >   threshold defined by the properties maven.clover.check.target,
> >   maven.clover.check.packagesand maven.clover.check.targets. It fails the
> >   build if it's below.
> > 
> >   Changes:
> > 
> > o Updated to Clover 1.3.5 and applied new license that supports generating
> >   history report (the previous one didn't support it).
> > o Changed the location of the default license. It is now bundled in the
> >   plugin and the plugin no longer downloads it from your remote repository.
> >   As before if you wish to use your own license use the
> >   maven.clover.license.pathproperty.
> > 
> > To automatically install the plugin, type the following on a single line:
> > 
> > maven plugin:download
> >   -DgroupId=maven
> >   -DartifactId=maven-clover-plugin
> >   -Dversion=1.8
> > 
> > For a manual installation, you can download the plugin here:
> > http://www.apache.org/dyn/closer.cgi/java-repository/maven/plugins/maven-clover-plugin-1.8.jar
> > 
> > Have fun!
> > -The maven team
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to