Project extension used to set properties for the Cobertura tasks on a global basis.
See the Cobertura Ant task reference for more documentation on these properties.
| Constructor and description |
|---|
CoberturaExtension
(Project pProject)Create a new CoberturaExtension. |
| Type | Name and description |
|---|---|
FileCollection |
getCoberturaClassPath()Get the class path containing the Cobertura classes. |
java.util.List<java.lang.String> |
getIgnoreMethodAnnotations() |
java.util.List<java.lang.String> |
getIgnoreMethodNames() |
java.lang.String |
getToolVersion() |
java.io.File |
getWorkDir()Get the work directory where by default all temporary files, such as instrumented classes and the data file, are put. |
void |
setCoberturaClassPath(java.lang.Object pClassPath)Set the Cobertura classpath. |
void |
setWorkDir(java.lang.Object pDirectory)Set the work directory. |
| Methods inherited from class | Name |
|---|---|
class ProjectAware |
getProject |
A list of fully qualified names of annotations with which methods that should be excluded from instrumentation are annotated with. Default is an empty list.
A list of regular expressions specifying methods names to be excluded from the coverage analysis. Note that the classes containing the methods will still be instrumented. Default is an empty list.
If true, constructors/methods that contain one line of code will be excluded from the coverage analysis. Examples include constructors only calling a super constructor, and getters/setters. Default is false.
The encoding used by Cobertura to read the source files. The platform's default encoding will be used if this property isn't specified.
The version of Cobertura to use. Default is "2.1.1"
Create a new CoberturaExtension.
pProject - The project this extension belongs to. Get the class path containing the Cobertura classes. Default is the cobertura
configuration.
Get the work directory where by default all temporary files, such as instrumented classes and the data file, are put. The default is a directory called "cobertura" in the project's temporary directory.
Set the Cobertura classpath. The specified classpath will be resolved relative to the project directory.
pClassPath - The classpath. Passing null will effectively restore the default value.Set the work directory. The specified directory will be resolved relative to the project directory.
pDirectory - The work directory. Passing null will effectively restore the default
value.Groovy Documentation