Adding to Ant's Classpath

Clover-for-Ant Installation Guide

このページの内容

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

注意

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

    注意

    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

最終更新日 2014 年 6 月 23 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.