This is the documentation for Clover 3.3. View this page for the

Unknown macro: {spacejump}

of Clover, or visit the latest Clover documentation.

Note

This is an alternative method of installing Clover, and only applies to certain environments.
The normal and recommended method of installing Clover is outlined on Adding to Ant's build.xml.

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

Installing Clover locally for a single user

  1. Create a directory ${user.home}/.ant/lib
  2. Copy clover.jar to ${user.home}/.ant/lib

    Note

    The location of ${user.home} depends on your JVM and platform. On Unix systems, ${user.home} usually maps to the user's home directory. On Windows systems, ${user.home} will map to something like C:\Documents and Settings\username\. Check your JVM documentation for more details.

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.)

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).

Alternatively, you can add CLOVER_HOME/clover.jar to the CLASSPATH system environment variable before running Ant. For information about setting this variable, please consult your Operating System documentation.

NEXT STEP

See Clover for Ant Best Practices