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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
enhanceTask(org.apache.tools.ant.Task task)
Attempt to enhance the supplied task with coverage information.boolean
supportsTask(java.lang.String taskname)
-
-
-
Method Detail
-
supportsTask
boolean supportsTask(java.lang.String taskname)
- 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.
-
-