net.sourceforge.cobertura.ant

Class CheckTask


public class CheckTask
extends MatchingTask

An ant task that can be used to optionally fail an ant build if the coverage percentage for lines or branches is below a certain, user specifiable threshold.

Field Summary

private String
branchRate
private String
dataFile
private String
failureProperty
private boolean
haltOnFailure
private Java
java
private String
lineRate
(package private) Set
regexes
private String
totalBranchRate
private String
totalLineRate

Method Summary

Path
createClasspath()
Regex
createRegex()
void
execute()
protected Java
getJava()
void
setBranchRate(String branchRate)
void
setClasspath(Path classpath)
void
setClasspathRef(Reference r)
void
setDataFile(String dataFile)
void
setFailureProperty(String failureProperty)
void
setHaltOnFailure(boolean haltOnFailure)
void
setLineRate(String lineRate)
void
setTotalBranchRate(String totalBranchRate)
void
setTotalLineRate(String totalLineRate)

Field Details

branchRate

private String branchRate


dataFile

private String dataFile


failureProperty

private String failureProperty


haltOnFailure

private boolean haltOnFailure


java

private Java java


lineRate

private String lineRate


regexes

(package private) final Set regexes


totalBranchRate

private String totalBranchRate


totalLineRate

private String totalLineRate

Method Details

createClasspath

public Path createClasspath()


createRegex

public Regex createRegex()


execute

public void execute()
            throws BuildException


getJava

protected Java getJava()


setBranchRate

public void setBranchRate(String branchRate)


setClasspath

public void setClasspath(Path classpath)


setClasspathRef

public void setClasspathRef(Reference r)


setDataFile

public void setDataFile(String dataFile)


setFailureProperty

public void setFailureProperty(String failureProperty)


setHaltOnFailure

public void setHaltOnFailure(boolean haltOnFailure)


setLineRate

public void setLineRate(String lineRate)


setTotalBranchRate

public void setTotalBranchRate(String totalBranchRate)


setTotalLineRate

public void setTotalLineRate(String totalLineRate)