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 TypeMethodDescriptionvoidaddJvmArgs(org.apache.tools.ant.Task task) voidenhanceTask(org.apache.tools.ant.Task task) Attempt to enhance the supplied task with coverage information.booleansupportsTask(String taskname)
-
Field Details
-
supportedTaskName
-
-
Constructor Details
-
JavaLikeTaskEnhancer
-
-
Method Details
-
supportsTask
- Specified by:
supportsTaskin interfaceCoverageTask.TaskEnhancer- Parameters:
taskname- Task type to enhance- Returns:
trueif 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.TaskEnhancerAttempt to enhance the supplied task with coverage information. This operation may fail if the task is being executed in the current VM- Specified by:
enhanceTaskin interfaceCoverageTask.TaskEnhancer- Parameters:
task- Task instance to enhance (usually anUnknownElement)
-
addJvmArgs
public void addJvmArgs(org.apache.tools.ant.Task task)
-