Package org.jacoco.ant
Interface CoverageTask.TaskEnhancer
- All Known Implementing Classes:
CoverageTask.JavaLikeTaskEnhancer
,CoverageTask.TestNGTaskEnhancer
- Enclosing class:
- CoverageTask
private static interface CoverageTask.TaskEnhancer
The task enhancer is responsible for potentially reconfiguring a task to
support running with code coverage enabled
-
Method Summary
Modifier and TypeMethodDescriptionvoid
enhanceTask
(org.apache.tools.ant.Task task) Attempt to enhance the supplied task with coverage information.boolean
supportsTask
(String taskname)
-
Method Details
-
supportsTask
- Parameters:
taskname
- Task type to enhance- Returns:
true
if this enhancer is capable of enhancing the requested task type
-
enhanceTask
void enhanceTask(org.apache.tools.ant.Task task) throws org.apache.tools.ant.BuildException Attempt to enhance the supplied task with coverage information. This operation may fail if the task is being executed in the current VM- Parameters:
task
- Task instance to enhance (usually anUnknownElement
)- Throws:
org.apache.tools.ant.BuildException
- Thrown if this enhancer can handle this type of task, but this instance can not be enhanced for some reason.
-