|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectorg.gradle.testing.jacoco.plugins.JacocoPluginExtension
@Incubating class JacocoPluginExtension
Extension including common properties and methods for Jacoco.
Field Summary | |
---|---|
protected Project |
project
|
Property Summary | |
---|---|
static String |
TASK_EXTENSION_NAME
|
Logger |
logger
|
File |
reportsDir
The directory where reports will be generated. |
String |
toolVersion
Version of Jacoco JARs to use. |
Constructor Summary | |
JacocoPluginExtension(Project project, JacocoAgentJar agent)
Creates a Jacoco plugin extension. |
Method Summary | |
---|---|
void
|
applyTo(JavaForkOptions task)
Applies Jacoco to the given task. |
void
|
applyTo(TaskCollection tasks)
Applies Jacoco to all of the given tasks. |
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Field Detail |
---|
protected final Project project
Property Detail |
---|
static final String TASK_EXTENSION_NAME
Logger logger
File reportsDir
String toolVersion
Constructor Detail |
---|
JacocoPluginExtension(Project project, JacocoAgentJar agent)
project
- the project the extension is attached toagent
- the agent JAR to be used by Jacoco
Method Detail |
---|
void applyTo(JavaForkOptions task)
task
- the task to apply Jacoco to.
void applyTo(TaskCollection tasks)
tasks
- the tasks to apply Jacoco to
Gradle API 1.12