public class AbstractCoverageTask
extends org.apache.tools.ant.Task
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractCoverageTask()
Create default agent options
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getLaunchingArgument()
Creates JVM argument to launch with the specified JaCoCo agent jar and
the current options
|
boolean |
isEnabled() |
void |
setAddress(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(File dir)
Sets the directory where all class files seen by the agent should be
dumped to.
|
void |
setDestfile(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(String exclClassLoader)
List of wildcard patterns for classloaders that JaCoCo will not
instrument classes from.
|
void |
setExcludes(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(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(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(String id)
Sets the session identifier.
|
bindToOwner, 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(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(String includes)
*includes - Wildcard pattern of included classespublic void setExcludes(String excludes)
excludes - Wildcard pattern of excluded classespublic void setExclClassLoader(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(String id)
id - session identifierpublic void setDumpOnExit(boolean dumpOnExit)
truedumpOnExit - true to write coverage data on VM terminationpublic void setOutput(String output)
fileoutput - Output methodpublic void setAddress(String address)
localhostaddress - Address to bind or connect topublic void setPort(int port)
6300port - port to bind to or connect topublic void setClassdumpdir(File dir)
dir - dump output locationpublic void setJmx(boolean jmx)
jmx - true if JMX should be enabledprotected String getLaunchingArgument()
Copyright © 2024. All rights reserved.