|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.plugin.AbstractMojo org.apache.maven.reporting.AbstractMavenReport de.smartics.maven.plugin.buildmetadata.AbstractReportMojo
public abstract class AbstractReportMojo
The abstract base implementation for reports.
Field Summary | |
---|---|
protected ArtifactFactory |
factory The factory to create dependent artifacts. |
protected String |
locale The locale to use regardless of the report. |
protected ArtifactRepository |
localRepository Local Repository. |
protected String |
logLevel Specifies the log level buildmetadata.logLevel used for this plugin. |
protected File |
outputDirectory Specifies the directory where the report will written to. |
protected MavenProject |
project The Maven project. |
protected ArtifactResolver |
resolver The resolver for resolving artifacts. |
protected org.apache.maven.doxia.siterenderer.Renderer |
siteRenderer The Doxia site renderer. |
protected boolean |
skip A simple flag to skip the generation of the reports. |
Fields inherited from interface org.apache.maven.reporting.MavenReport |
---|
CATEGORY_PROJECT_INFORMATION, CATEGORY_PROJECT_REPORTS, ROLE |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
AbstractReportMojo() |
Method Summary | |
---|---|
boolean |
canGenerateReport() |
void |
execute() Runs the report generation. |
protected void |
executeReport(Locale locale) |
protected ResourceBundle |
getBundle(Locale locale) Returns the resource bundle for the given locale. |
protected String |
getOutputDirectory() |
protected MavenProject |
getProject() |
protected org.apache.maven.doxia.siterenderer.Renderer |
getSiteRenderer() |
protected void |
provideSink() Ensures that a writeable sink is provided. |
Methods inherited from class org.apache.maven.reporting.AbstractMavenReport |
---|
closeReport, generate, getCategoryName, getReportOutputDirectory, getSink, isExternalReport, setReportOutputDirectory |
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
---|
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.maven.reporting.MavenReport |
---|
getDescription, getName, getOutputName |
Field Detail |
---|
protected MavenProject project
protected org.apache.maven.doxia.siterenderer.Renderer siteRenderer
protected ArtifactRepository localRepository
protected ArtifactResolver resolver
protected ArtifactFactory factory
protected File outputDirectory
protected String logLevel
buildmetadata.logLevel
used for this plugin.
Allowed values are SEVERE
, WARNING
, INFO
and FINEST
.
protected String locale
protected boolean skip
-Dbuildmetadata.skip
.
Constructor Detail |
---|
public AbstractReportMojo()
Method Detail |
---|
protected final MavenProject getProject()
getProject
in class
AbstractMavenReport
AbstractMavenReport.getProject()
protected final org.apache.maven.doxia.siterenderer.Renderer getSiteRenderer()
getSiteRenderer
in class
AbstractMavenReport
AbstractMavenReport.getSiteRenderer()
protected final String getOutputDirectory()
getOutputDirectory
in class
AbstractMavenReport
AbstractMavenReport.getOutputDirectory()
public void execute() throws MojoExecutionException
execute
in interface
Mojo
execute
in class
AbstractMavenReport
MojoExecutionException
- on any problem encountered.
public boolean canGenerateReport()
canGenerateReport
in interface
MavenReport
canGenerateReport
in class
AbstractMavenReport
AbstractMavenReport.canGenerateReport()
protected void executeReport(Locale locale) throws MavenReportException
Configures the plugin logger.
executeReport
in class
AbstractMavenReport
MavenReportException
AbstractMavenReport.executeReport(java.util.Locale)
protected final void provideSink() throws MojoExecutionException
Stolen from the changes plugin.
MojoExecutionException
- if the sink cannot be created.
protected final ResourceBundle getBundle(Locale locale)
locale
- the locale for which the resource bundle is requested.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |