public class AgentTask extends AbstractCoverageTask
| Constructor and Description |
|---|
AgentTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Unpacks a private copy of the JaCoCo agent and populates
property with the JVM arguments required to use it. |
void |
setProperty(String property)
Sets the name of the property to hold the agent JVM options
|
getLaunchingArgument, isEnabled, setAddress, setAppend, setClassdumpdir, setDestfile, setDumpOnExit, setEnabled, setExclClassLoader, setExcludes, setInclBootstrapClasses, setInclNoLocationClasses, setIncludes, setJmx, setOutput, setPort, setSessionIdbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic void setProperty(String property)
property - Name of the property to be populatedpublic void execute()
throws org.apache.tools.ant.BuildException
property with the JVM arguments required to use it. The
value set into the property is only valid for the lifetime of the current
JVM. The agent jar will be removed on termination of the JVM.execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildExceptionCopyright © 2024. All rights reserved.