Adding to Ant's Classpath

Below are three options for adding the clover.jar to your Ant classpath directly.

Installing Clover locally for a single user

Copy clover.jar to ${user.home}/.ant/lib (create a directory if necessary). The location of ${user.home} depends on your JVM and platform. On Unix systems, ${user.home} usually maps to the user's home directory. Check your JVM documentation for more details.

Installing Clover globally into Ant

Copy clover.jar into ANT_HOME/lib (since all jars in this directory are automatically added to Ant's classpath by the scripts that start Ant).

Installing Clover at an arbitary location

You can install and use Clover at an arbitary location and then refer to it using the -lib command line option with Ant:

ant -lib CLOVER_HOME/lib buildWithClover

(where CLOVER_HOME is the directory where Clover was installed.)

NEXT STEP

See Clover for Ant Best Practices