public class ReportingExtension
extends java.lang.Object
reporting { baseDir "$buildDir/our-reports" }
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_REPORTS_DIR_NAME
The default name of the base directory for all reports, relative to
Project.getBuildDir() ("reports"). |
static java.lang.String |
NAME
The name of this extension (""reporting"")
|
Constructor and Description |
---|
ReportingExtension(Project project) |
Modifier and Type | Method and Description |
---|---|
java.io.File |
file(java.lang.String path)
Creates a file object for the given path, relative to
getBaseDir() . |
java.lang.String |
getApiDocTitle() |
java.io.File |
getBaseDir()
The base directory for all reports
This value can be changed, so any files derived from this should be calculated on demand.
|
void |
setBaseDir(java.lang.Object baseDir)
Sets the base directory to use for all reports
The value will be converted to a
File on demand via Project.file(Object) . |
public static final java.lang.String NAME
public static final java.lang.String DEFAULT_REPORTS_DIR_NAME
Project.getBuildDir()
("reports").public ReportingExtension(Project project)
public java.io.File getBaseDir()
public void setBaseDir(java.lang.Object baseDir)
File
on demand via Project.file(Object)
.baseDir
- The base directory to use for all reportspublic java.io.File file(java.lang.String path)
getBaseDir()
.
The reporting base dir can be changed, so users of this method should use it on demand where appropriate.path
- the relative pathgetBaseDir()
public java.lang.String getApiDocTitle()