Package org.gradle.api.reporting
Klasse ReportingExtension
java.lang.Object
org.gradle.api.reporting.ReportingExtension
A project extension named "reporting" that provides basic reporting settings and utilities.
Example usage:
reporting {
baseDirectory = layout.buildDirectory.dir("our-reports")
}
When implementing a task that produces reports, the location of where to generate reports should be obtained
via the file(String) method of this extension.
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final StringThe default name of the base directory for all reports, relative toProjectLayout.getBuildDirectory()("reports").static final StringThe name of this extension (""reporting"") -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungCreates a file object for the given path, relative togetBaseDir().Veraltet.Returns base directory property to use for all reports.Container for aggregation reports, which may be configured automatically in reaction to the presence of the jvm-test-suite plugin.voidsetBaseDir(File baseDir) Veraltet.usegetBaseDirectory()property insteadvoidsetBaseDir(Object baseDir) Veraltet.usegetBaseDirectory()property instead
-
Felddetails
-
NAME
The name of this extension (""reporting"")- Siehe auch:
-
DEFAULT_REPORTS_DIR_NAME
The default name of the base directory for all reports, relative toProjectLayout.getBuildDirectory()("reports").- Siehe auch:
-
-
Konstruktordetails
-
ReportingExtension
-
-
Methodendetails
-
getBaseDir
Veraltet.usegetBaseDirectory()property insteadThe base directory for all reportsThis value can be changed, so any files derived from this should be calculated on demand.
- Gibt zurück:
- The base directory for all reports
-
setBaseDir
Veraltet.usegetBaseDirectory()property insteadSets the base directory to use for all reports- Parameter:
baseDir- The base directory to use for all reports- Seit:
- 4.0
-
setBaseDir
Veraltet.usegetBaseDirectory()property insteadSets the base directory to use for all reportsThe value will be converted to a
Fileon demand viaProject.file(Object).- Parameter:
baseDir- The base directory to use for all reports
-
getBaseDirectory
Returns base directory property to use for all reports.- Seit:
- 4.4
-
file
Creates a file object for the given path, relative togetBaseDir().The reporting base dir can be changed, so users of this method should use it on demand where appropriate.
- Parameter:
path- the relative path- Gibt zurück:
- a file object at the given path relative to
getBaseDir()
-
getApiDocTitle
-
getReports
Container for aggregation reports, which may be configured automatically in reaction to the presence of the jvm-test-suite plugin.- Gibt zurück:
- A container of known aggregation reports
- Seit:
- 7.4
-
getBaseDirectory()property instead