java.lang.CloneableAgentTask, CoverageTaskpublic class AbstractCoverageTask
extends org.apache.tools.ant.Task
| Modifier | Constructor | Description |
|---|---|---|
protected |
AbstractCoverageTask() |
Create default agent options
|
| Modifier and Type | Method | Description |
|---|---|---|
protected java.lang.String |
getLaunchingArgument() |
Creates JVM argument to launch with the specified JaCoCo agent jar and
the current options
|
boolean |
isEnabled() |
|
void |
setAddress(java.lang.String address) |
Sets the IP address or hostname to bind to when output method is tcp
server or connect to when the output method is tcp client.
|
void |
setAppend(boolean append) |
Append execution coverage data if a coverage file is already present.
|
void |
setClassdumpdir(java.io.File dir) |
Sets the directory where all class files seen by the agent should be
dumped to.
|
void |
setDestfile(java.io.File file) |
Sets the location to write coverage execution data to.
|
void |
setDumpOnExit(boolean dumpOnExit) |
Dump coverage data on VM termination.
|
void |
setEnabled(boolean enabled) |
Sets whether or not the current task is enabled
|
void |
setExclClassLoader(java.lang.String exclClassLoader) |
List of wildcard patterns for classloaders that JaCoCo will not
instrument classes from.
|
void |
setExcludes(java.lang.String excludes) |
List of wildcard patterns classes to exclude from instrumentation.
|
void |
setInclBootstrapClasses(boolean include) |
Sets whether classes from the bootstrap classloader should be
instrumented.
|
void |
setInclNoLocationClasses(boolean include) |
Sets whether classes without source location should be instrumented.
|
void |
setIncludes(java.lang.String includes) |
List of wildcard patterns classes to include for instrumentation.
|
void |
setJmx(boolean jmx) |
Sets whether the agent should expose functionality via JMX.
|
void |
setOutput(java.lang.String output) |
Sets the output method.
|
void |
setPort(int port) |
Sets the Port to bind to when the output method is tcp server or connect
to when the output method is tcp client.
|
void |
setSessionId(java.lang.String id) |
Sets the session identifier.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclone, getDescription, getLocation, getProject, setDescription, setLocation, setProjectbindToOwner, execute, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeprotected AbstractCoverageTask()
public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled - Enablement state of the taskpublic void setDestfile(java.io.File file)
jacoco.exec.file - Location to write coverage execution data topublic void setAppend(boolean append)
trueappend - true to append execution data to an existing filepublic void setIncludes(java.lang.String includes)
*includes - Wildcard pattern of included classespublic void setExcludes(java.lang.String excludes)
excludes - Wildcard pattern of excluded classespublic void setExclClassLoader(java.lang.String exclClassLoader)
sun.reflect.DelegatingClassLoaderexclClassLoader - Wildcard pattern of class loaders to excludepublic void setInclBootstrapClasses(boolean include)
include - true if bootstrap classes should be instrumentedpublic void setInclNoLocationClasses(boolean include)
include - true if classes without source location should be
instrumentedpublic void setSessionId(java.lang.String id)
id - session identifierpublic void setDumpOnExit(boolean dumpOnExit)
truedumpOnExit - true to write coverage data on VM terminationpublic void setOutput(java.lang.String output)
fileoutput - Output methodpublic void setAddress(java.lang.String address)
localhostaddress - Address to bind or connect topublic void setPort(int port)
6300port - port to bind to or connect topublic void setClassdumpdir(java.io.File dir)
dir - dump output locationpublic void setJmx(boolean jmx)
jmx - true if JMX should be enabledprotected java.lang.String getLaunchingArgument()
Copyright © 2018. All rights reserved.