Package org.jacoco.ant
Class ReportTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- org.jacoco.ant.ReportTask
-
- All Implemented Interfaces:
java.lang.Cloneable
public class ReportTask extends org.apache.tools.ant.TaskTask for coverage report generation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classReportTask.CheckFormatterElementFormatter element for coverage checks.classReportTask.CSVFormatterElementFormatter element for CSV reports.static classReportTask.GroupElementContainer element for class file groups.classReportTask.HTMLFormatterElementFormatter element for HTML reports.static classReportTask.SourceFilesElementThe source files are specified in a resource collection with additional attributes.classReportTask.XMLFormatterElementFormatter element for XML reports.
-
Constructor Summary
Constructors Constructor Description ReportTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReportTask.CheckFormatterElementcreateCheck()Creates a new coverage check element.ReportTask.CSVFormatterElementcreateCsv()Creates a new CSV report element.org.apache.tools.ant.types.resources.UnioncreateExecutiondata()Returns the nested resource collection for execution data files.ReportTask.HTMLFormatterElementcreateHtml()Creates a new HTML report element.ReportTask.GroupElementcreateStructure()Returns the root group element that defines the report structure.ReportTask.XMLFormatterElementcreateXml()Creates a new XML report element.voidexecute()-
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
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
-
createHtml
public ReportTask.HTMLFormatterElement createHtml()
Creates a new HTML report element.- Returns:
- HTML report element
-
createCsv
public ReportTask.CSVFormatterElement createCsv()
Creates a new CSV report element.- Returns:
- CSV report element
-
createCheck
public ReportTask.CheckFormatterElement createCheck()
Creates a new coverage check element.- Returns:
- coverage check element
-
createXml
public ReportTask.XMLFormatterElement createXml()
Creates a new XML report element.- Returns:
- CSV report element
-
execute
public void execute() throws org.apache.tools.ant.BuildException- Overrides:
executein classorg.apache.tools.ant.Task- Throws:
org.apache.tools.ant.BuildException
-
-