net.sourceforge.cobertura.ant
Class CheckTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.MatchingTask
net.sourceforge.cobertura.ant.CheckTask
- All Implemented Interfaces:
- java.lang.Cloneable, org.apache.tools.ant.types.selectors.SelectorContainer
public class CheckTask
- extends org.apache.tools.ant.taskdefs.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.
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
fileset |
Fields inherited from class org.apache.tools.ant.Task |
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
description, location, project |
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems |
Methods inherited from class org.apache.tools.ant.Task |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
clone, getDescription, getLocation, getProject, setDescription, setLocation |
Methods inherited from class java.lang.Object |
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
java
private org.apache.tools.ant.taskdefs.Java java
CheckTask
public CheckTask()
execute
public void execute()
throws org.apache.tools.ant.BuildException
- Overrides:
execute
in class org.apache.tools.ant.Task
- Throws:
org.apache.tools.ant.BuildException
createRegex
public Regex createRegex()
getJava
protected org.apache.tools.ant.taskdefs.Java getJava()
createClasspath
public org.apache.tools.ant.types.Path createClasspath()
setClasspath
public void setClasspath(org.apache.tools.ant.types.Path classpath)
setClasspathRef
public void setClasspathRef(org.apache.tools.ant.types.Reference r)
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)