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) |
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
Gradle API 3.0-milestone-1