This documentation applies to Clover version 2.1. The latest Clover documentation is available via this link.

Clover 2.1 Upgrade Guide for Ant

We've taken care to make the upgrade to Clover 2.1 straightforward.

If you are using Clover 1.x with Ant, follow these simple steps to upgrade to Clover 2.1:

1. Replace 1.x clover.jar with the 2.x clover.jar
You can do this by simply copying the new jar over the top of the old one.

2. Obtain and install a Clover 2.1 license
When you run Clover, output similar to the following will appear:

[clover] Clover Version 2.1, built on ...
 [clover] Loaded from: c:/ant/lib/clover.jar

3. Delete any existing Coverage database
The Clover database is created at the location specified in the initstring attribute of <clover-setup>.

Note

In Clover 2, the initstring parameter is now optional. We recommend leaving it unspecified unless you want to explicitly control where Clover writes its database file.

Please also read the Best practices for Ant integration.

  • No labels