Interface Report
- All Superinterfaces:
org.gradle.util.Configurable<Report>, Serializable
- All Known Subinterfaces:
ConfigurableReport, CustomizableHtmlReport, DirectoryReport, FindBugsXmlReport, JUnitXmlReport, SingleFileReport
A file based report to be created.
Tasks that produce reports expose instances of this type for configuration via the Reporting interface.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe type of output the report produces -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionThe location on the filesystem of the report when it is generated.A more descriptive name of this report.getName()The symbolic name of this report.The type of output that the report generates.booleanWhether or not this report should be generated by whatever generates it.voidsetEnabled(boolean enabled) Whether or not this report should be generated by whatever generates it.Methods inherited from interface org.gradle.util.Configurable
configure
-
Field Details
-
NAMER
-
-
Method Details
-
getName
The symbolic name of this report.The name of the report usually indicates the format (e.g. XML, HTML etc.) but can be anything.
When part of a
ReportContainer, reports are accessed via their name. That is, given a report container variable namedreportscontaining a report who'sgetName()returns"html", the report could be accessed via:reports.html
- Returns:
- The name of this report.
-
getDisplayName
-
isEnabled
Whether or not this report should be generated by whatever generates it.If
true, the generator of this report will generate it at the appropriate time. Iffalse, the generator of this report will not generate this report.- Returns:
- Whether or not this report should be generated by whatever generates it.
-
setEnabled
void setEnabled(boolean enabled) Whether or not this report should be generated by whatever generates it.- Parameters:
enabled- Whether or not this report should be generated by whatever generates it.- See Also:
-
getDestination
The location on the filesystem of the report when it is generated.Depending on the
output typeof the report, this may point to a file or a directory.Subtypes may implement setters for the destination.
- Returns:
- The location on the filesystem of the report when it is generated
-
getOutputType
The type of output that the report generates.- Returns:
- The type of output that the report generates.
-