|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.jacoco.ant.AbstractCoverageTask
public class AbstractCoverageTask
Base class for all coverage tasks that require agent options
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.Task |
---|
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
protected |
AbstractCoverageTask()
Create default agent options |
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.tools.ant.Task |
---|
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 |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractCoverageTask()
Method Detail |
---|
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)
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 setInclNoLocationClasses(boolean include)
include
- true
if classes without source location 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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |