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 |
---|---|
AgentOptions |
getAgentOptions()
Gets the currently configured agent options for this task
|
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.
|
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 |
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, setTaskType
protected AbstractCoverageTask()
public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- Enablement state of the taskpublic AgentOptions getAgentOptions()
public void setDestfile(File file)
file
- Location to write coverage execution datapublic void setAppend(boolean append)
true
append
- 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.DelegatingClassLoader
exclClassLoader
- Wildcard pattern of class loaders to excludepublic void setInclBootstrapClasses(boolean include)
include
- true
if bootstrap classes should be instrumentedpublic void setSessionId(String id)
id
- session identifierpublic void setDumpOnExit(boolean dumpOnExit)
true
dumpOnExit
- true
to write coverage data on VM terminationpublic void setOutput(String output)
file
output
- Output methodpublic void setAddress(String address)
localhost
address
- Address to bind or connect topublic void setPort(int port)
6300
port
- 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 © 2016. All rights reserved.