Package org.jacoco.ant
Class CoverageTask.JavaLikeTaskEnhancer
java.lang.Object
org.jacoco.ant.CoverageTask.JavaLikeTaskEnhancer
- All Implemented Interfaces:
CoverageTask.TaskEnhancer
- Direct Known Subclasses:
CoverageTask.TestNGTaskEnhancer
- Enclosing class:
CoverageTask
Basic task enhancer that can handle all 'java like' tasks. That is, tasks
that have a top level fork attribute and nested jvmargs elements
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addJvmArgs
(org.apache.tools.ant.Task task) void
enhanceTask
(org.apache.tools.ant.Task task) Attempt to enhance the supplied task with coverage information.boolean
supportsTask
(String taskname)
-
Field Details
-
supportedTaskName
-
-
Constructor Details
-
JavaLikeTaskEnhancer
-
-
Method Details
-
supportsTask
- Specified by:
supportsTask
in interfaceCoverageTask.TaskEnhancer
- Parameters:
taskname
- Task type to enhance- Returns:
true
if this enhancer is capable of enhancing the requested task type
-
enhanceTask
public void enhanceTask(org.apache.tools.ant.Task task) Description copied from interface:CoverageTask.TaskEnhancer
Attempt to enhance the supplied task with coverage information. This operation may fail if the task is being executed in the current VM- Specified by:
enhanceTask
in interfaceCoverageTask.TaskEnhancer
- Parameters:
task
- Task instance to enhance (usually anUnknownElement
)
-
addJvmArgs
public void addJvmArgs(org.apache.tools.ant.Task task)
-