Table of Contents
API Documentation: | 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 ReportingExtension.file(java.lang.String)
method of this extension.
Property | Description |
baseDirectory | Returns base directory property to use for all reports. |
Method | Description |
file(path) | Creates a file object for the given path, relative to |
DirectoryProperty
baseDirectory
Returns base directory property to use for all reports.
Creates a file object for the given path, relative to ReportingExtension.getBaseDir()
.
The reporting base dir can be changed, so users of this method should use it on demand where appropriate.