Class CoverageTask.JavaLikeTaskEnhancer

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String supportedTaskName  
    • Constructor Summary

      Constructors 
      Constructor Description
      JavaLikeTaskEnhancer​(java.lang.String supportedTaskName)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void 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​(java.lang.String taskname)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • supportedTaskName

        private final java.lang.String supportedTaskName
    • Constructor Detail

      • JavaLikeTaskEnhancer

        public JavaLikeTaskEnhancer​(java.lang.String supportedTaskName)
    • Method Detail

      • supportsTask

        public boolean supportsTask​(java.lang.String taskname)
        Specified by:
        supportsTask in interface CoverageTask.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 interface CoverageTask.TaskEnhancer
        Parameters:
        task - Task instance to enhance (usually an UnknownElement)
      • addJvmArgs

        public void addJvmArgs​(org.apache.tools.ant.Task task)