|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectorg.ajoberstar.gradle.jacoco.tasks.JacocoTaskExtension
class JacocoTaskExtension
Extension for tasks that should run with a Jacoco agent to generate coverage execution data.
Nested Class Summary | |
---|---|
enum |
JacocoTaskExtension.Output
The types of output that the agent can use for execution data. |
Field Summary | |
---|---|
protected Project |
project
|
Property Summary | |
---|---|
java.lang.String |
address
IP address or hostname to use with Output#TCP_SERVER#TCP_SERVER or Output#TCP_CLIENT#TCP_CLIENT. |
boolean |
append
Whether or not data should be appended if the destFile already exists. |
java.lang.Object |
classDumpPath
Path to dump all class files the agent sees are dumped to. |
java.lang.Object |
destPath
The path for the execution data to be written to. |
boolean |
dumpOnExit
Whether or not to dump the coverage data at VM shutdown. |
boolean |
enabled
Whether or not the task should generate execution data. |
java.util.List |
excludeClassLoaders
List of classloader names that should be excluded from analysis. |
java.util.List |
excludes
List of class names that should be excluded from analysis. |
java.util.List |
includes
List of class names that should be included in analysis. |
boolean |
jmx
Whether or not to expose functionality via JMX under org.jacoco:type=Runtime. |
Output |
output
THe type of output to generate. |
int |
port
Port to bind to for Output#TCP_SERVER#TCP_SERVER or Output#TCP_CLIENT#TCP_CLIENT. |
java.lang.String |
sessionId
An identifier for the session written to the execution data. |
Constructor Summary | |
JacocoTaskExtension(Project project, JacocoAgentJar agent)
Creates a Jacoco task extension. |
Method Summary | |
---|---|
java.lang.String
|
getAsJvmArg()
Gets all properties in the format expected of the agent JVM argument. |
java.io.File
|
getClassDumpDir()
Directory to dump all class files the agent sees are dumped to. |
java.io.File
|
getDestFile()
The path for the execution data to be written to. |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
protected final Project project
Property Detail |
---|
java.lang.String address
boolean append
java.lang.Object classDumpPath
java.lang.Object destPath
boolean dumpOnExit
boolean enabled
java.util.List excludeClassLoaders
java.util.List excludes
java.util.List includes
boolean jmx
Output output
int port
java.lang.String sessionId
Constructor Detail |
---|
JacocoTaskExtension(Project project, JacocoAgentJar agent)
project
- the project the task is attached toagent
- the agent JAR to use for analysis
Method Detail |
---|
java.lang.String getAsJvmArg()
java.io.File getClassDumpDir()
java.io.File getDestFile()
Groovy Documentation