Skip to end of metadata
Go to start of metadata
All Versions
Clover 2.5 Documentation

Description

The <clover-clean> task deletes the coverage database and associated coverage recording files.

Parameters

Attribute

Description

Required

haltOnError

Controls whether an error (such as a failure to delete a file) stops the build or is merely reported to the screen ("true"/"false").

No; defaults to "false".

initstring

The initstring of the database to clean.

No; if not specified here, Clover will use the default location (${basedir}/.clover). If you have specified an initstring on the <clover-setup> task, you must ensure that <clover-setup> is called prior to the execution of this task.

keepdb

Controls whether to keep the coverage database file ("true"/"false"). If "false", the coverage database will be deleted.

No; defaults to "true".

keepTestSnapshot

Specifies whether the test snapshot file should be kept or deleted; defaults to true. ("true"/"false")

No; if not specified here, the last test snapshot will be stored. \(i) This is not deleted between builds (unlike the .db file and the coverage files).

verbose

Controls whether to show the name of each deleted file ("true"/"false").

No; defaults to "false".

Examples

Deletes all of the coverage recordings.

Deletes all of the coverage recordings, printing out a log statement for each file deleted.

Deletes the coverage database and all of the coverage recordings.



Log a request with our support team.



Raise an issue for our developers.



See answers from the community.



Tweet, blog and update our documentation.

Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 2.5 Australia License.