Extension including common properties and methods for Jacoco.
| Modifiers | Name | Description |
|---|---|---|
static String |
TASK_EXTENSION_NAME |
|
protected Project |
project |
| Constructor and description |
|---|
JacocoPluginExtension
(Project project, org.gradle.internal.jacoco.JacocoAgentJar agent)Creates a Jacoco plugin extension. |
| Type | Name and description |
|---|---|
void |
applyTo(T task)Applies Jacoco to the given task. |
void |
applyTo(TaskCollection tasks)Applies Jacoco to all of the given tasks. |
Logger |
getLogger()Logger |
File |
getReportsDir()The directory where reports will be generated. |
static String |
getTASK_EXTENSION_NAME() |
String |
getToolVersion()Version of Jacoco JARs to use. |
void |
setLogger(Logger logger)Logger |
void |
setReportsDir(File reportsDir) |
void |
setToolVersion(String toolVersion) |
| Methods inherited from class | Name |
|---|---|
class groovy.lang.GroovyObjectSupport |
groovy.lang.GroovyObjectSupport#setProperty(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#getProperty(java.lang.String), groovy.lang.GroovyObjectSupport#invokeMethod(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#getMetaClass(), groovy.lang.GroovyObjectSupport#setMetaClass(groovy.lang.MetaClass), groovy.lang.GroovyObjectSupport#wait(long, int), groovy.lang.GroovyObjectSupport#wait(long), groovy.lang.GroovyObjectSupport#wait(), groovy.lang.GroovyObjectSupport#equals(java.lang.Object), groovy.lang.GroovyObjectSupport#toString(), groovy.lang.GroovyObjectSupport#hashCode(), groovy.lang.GroovyObjectSupport#getClass(), groovy.lang.GroovyObjectSupport#notify(), groovy.lang.GroovyObjectSupport#notifyAll() |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Creates a Jacoco plugin extension.
project - the project the extension is attached toagent - the agent JAR to be used by JacocoApplies Jacoco to the given task. Configuration options will be provided on a task extension named 'jacoco'. Jacoco will be run as an agent during the execution of the task.
task - the task to apply Jacoco to.Applies Jacoco to all of the given tasks.
tasks - the tasks to apply Jacoco toLogger
The directory where reports will be generated.
Version of Jacoco JARs to use.
Logger