Class ReportTask

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class ReportTask
    extends org.apache.tools.ant.Task
    Task for coverage report generation.
    • Constructor Detail

      • ReportTask

        public ReportTask()
    • Method Detail

      • createExecutiondata

        public org.apache.tools.ant.types.resources.Union createExecutiondata()
        Returns the nested resource collection for execution data files.
        Returns:
        resource collection for execution files
      • createStructure

        public ReportTask.GroupElement createStructure()
        Returns the root group element that defines the report structure.
        Returns:
        root group element
      • execute

        public void execute()
                     throws org.apache.tools.ant.BuildException
        Overrides:
        execute in class org.apache.tools.ant.Task
        Throws:
        org.apache.tools.ant.BuildException
      • loadExecutionData

        private void loadExecutionData()
      • createVisitor

        private IReportVisitor createVisitor()
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • checkForMissingDebugInformation

        private void checkForMissingDebugInformation​(ICoverageNode node)
      • parseLocale

        static java.util.Locale parseLocale​(java.lang.String locale)
        Splits a given underscore "_" separated string and creates a Locale. This method is implemented as the method Locale.forLanguageTag() was not available in Java 5.
        Parameters:
        locale - String representation of a Locate
        Returns:
        Locale instance