public interface MavenReport
Modifier and Type | Field and Description |
---|---|
static String |
CATEGORY_PROJECT_INFORMATION
Category for project information reports
|
static String |
CATEGORY_PROJECT_REPORTS
Category for project reports
|
static String |
ROLE
Plexus lookup name
|
Modifier and Type | Method and Description |
---|---|
boolean |
canGenerateReport()
Verify some conditions before generating the report.
|
void |
generate(org.apache.maven.doxia.sink.Sink sink,
Locale locale)
Generate the report depending the wanted locale.
|
String |
getCategoryName()
Get the category name for this report.
|
String |
getDescription(Locale locale)
Get the localized report description.
|
String |
getName(Locale locale)
Get the localized report name.
|
String |
getOutputName()
Deprecated.
Method name does not properly reflect its purpose. Implement and use
getOutputPath() instead. |
default String |
getOutputPath()
Get the path relative to
getReportOutputDirectory() where the report's main output
file will be written. |
File |
getReportOutputDirectory()
Get the shared report output directory.
|
boolean |
isExternalReport()
An external report is a report which calls a third party program which generates some reports too.
|
void |
setReportOutputDirectory(File outputDirectory)
Set a new shared report output directory.
|
static final String ROLE
static final String CATEGORY_PROJECT_INFORMATION
static final String CATEGORY_PROJECT_REPORTS
void generate(org.apache.maven.doxia.sink.Sink sink, Locale locale) throws MavenReportException
sink
- the sink to use for the generation.locale
- the wanted locale to generate the report.MavenReportException
- if anydefault String getOutputPath()
getReportOutputDirectory()
where the report's main output
file will be written. The last component is the name of the file without any extension. The
actual output extension will by added by the sink implementation.
Note: This method won't be default
anymore when getOutputName()
is removed.
You are advised to implement it as soon as possible.
@Deprecated String getOutputName()
getOutputPath()
instead.String getCategoryName()
CATEGORY_PROJECT_INFORMATION
or CATEGORY_PROJECT_REPORTS
String getName(Locale locale)
locale
- the wanted locale to return the report's name.String getDescription(Locale locale)
locale
- the wanted locale to return the report's description.void setReportOutputDirectory(File outputDirectory)
outputDirectory
- the new shared report output directoryFile getReportOutputDirectory()
boolean isExternalReport()
true
if this report is external, false
otherwise.
Default should be false
.boolean canGenerateReport() throws MavenReportException
true
if this report can be generated, false
otherwise.
Default should be true
.MavenReportException
- if anyCopyright © 2002–2024 The Apache Software Foundation. All rights reserved.