|
|||||||||
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
org.jacoco.ant.AgentTask
public class AgentTask
Ant task that will unpack the coverage agent jar and generate the JVM options required to use it
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 | |
---|---|
AgentTask()
|
Method Summary | |
---|---|
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 |
Methods inherited from class org.jacoco.ant.AbstractCoverageTask |
---|
getLaunchingArgument, isEnabled, setAddress, setAppend, setClassdumpdir, setDestfile, setDumpOnExit, setEnabled, setExclClassLoader, setExcludes, setInclBootstrapClasses, setInclNoLocationClasses, setIncludes, setJmx, setOutput, setPort, setSessionId |
Methods inherited from class org.apache.tools.ant.Task |
---|
bindToOwner, 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 |
---|
public AgentTask()
Method Detail |
---|
public 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.Task
org.apache.tools.ant.BuildException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |