net.sourceforge.cobertura.ant
Class CheckTask
java.lang.Object
MatchingTask
net.sourceforge.cobertura.ant.CommonMatchingTask
net.sourceforge.cobertura.ant.CheckTask
public class CheckTask
- extends CommonMatchingTask
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.
Methods inherited from class net.sourceforge.cobertura.ant.CommonMatchingTask |
addDirSet, addFileset, baseDir, createArgumentsForFilesets, createClasspath, getDirectoryScanner, getExcludedFiles, getFilenames, getIncludedFiles, getJava, setClasspath, setClasspathRef, setForkedJVMDebugPort, setMaxMemory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dataFile
private java.lang.String dataFile
regexes
final java.util.Set regexes
branchRate
private java.lang.String branchRate
lineRate
private java.lang.String lineRate
packageBranchRate
private java.lang.String packageBranchRate
packageLineRate
private java.lang.String packageLineRate
totalBranchRate
private java.lang.String totalBranchRate
totalLineRate
private java.lang.String totalLineRate
failureProperty
private java.lang.String failureProperty
haltOnFailure
private boolean haltOnFailure
CheckTask
public CheckTask()
execute
public void execute()
throws BuildException
- Throws:
BuildException
createRegex
public Regex createRegex()
setDataFile
public void setDataFile(java.lang.String dataFile)
setBranchRate
public void setBranchRate(java.lang.String branchRate)
setLineRate
public void setLineRate(java.lang.String lineRate)
setPackageBranchRate
public void setPackageBranchRate(java.lang.String packageBranchRate)
setPackageLineRate
public void setPackageLineRate(java.lang.String packageLineRate)
setTotalBranchRate
public void setTotalBranchRate(java.lang.String totalBranchRate)
setTotalLineRate
public void setTotalLineRate(java.lang.String totalLineRate)
setFailureProperty
public void setFailureProperty(java.lang.String failureProperty)
setHaltOnFailure
public void setHaltOnFailure(boolean haltOnFailure)