|
||||||||||
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.testdoc.maven.AbstractReportMojo
public abstract class AbstractReportMojo
The abstract base implementation for reports.
Field Summary | |
---|---|
protected String |
description The description of the report. |
protected org.apache.maven.artifact.factory.ArtifactFactory |
factory The factory to create dependent artifacts. |
protected String |
locale The locale to use regardless of the report. |
protected org.apache.maven.artifact.repository.ArtifactRepository |
localRepository Local Repository. |
protected String |
logLevel Specifies the log level used for this plugin. |
protected de.smartics.maven.util.report.MessageHelper |
messages |
protected String |
name The name of the report used as title. |
protected File |
outputDirectory Specifies the directory where the report will written to. |
protected String |
outputName The name of the report. |
protected MavenProject |
project The Maven project. |
protected org.apache.maven.artifact.resolver.ArtifactResolver |
resolver The resolver for resolving artifacts. |
protected org.apache.maven.doxia.siterenderer.Renderer |
siteRenderer The Doxia site renderer. |
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) Configures the plugin logger. |
protected ResourceBundle |
getBundle(Locale locale) Returns the resource bundle for the given locale. |
String |
getDescription(Locale locale) |
String |
getName(Locale locale) |
protected String |
getOutputDirectory() |
String |
getOutputName() |
protected MavenProject |
getProject() |
protected org.apache.maven.doxia.siterenderer.Renderer |
getSiteRenderer() |
Methods inherited from class org.apache.maven.reporting.AbstractMavenReport |
---|
closeReport, generate, generate, generate, getCategoryName, getReportOutputDirectory, getSink, getSinkFactory, 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 |
Field Detail |
---|
protected String name
protected String description
protected String outputName
protected de.smartics.maven.util.report.MessageHelper messages
protected MavenProject project
protected org.apache.maven.doxia.siterenderer.Renderer siteRenderer
protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
protected org.apache.maven.artifact.resolver.ArtifactResolver resolver
protected org.apache.maven.artifact.factory.ArtifactFactory factory
protected File outputDirectory
protected String logLevel
Allowed values are SEVERE
, WARNING
, INFO
and FINEST
.
protected String locale
Constructor Detail |
---|
public AbstractReportMojo()
Method Detail |
---|
protected MavenProject getProject()
getProject
in class
AbstractMavenReport
AbstractMavenReport.getProject()
protected org.apache.maven.doxia.siterenderer.Renderer getSiteRenderer()
getSiteRenderer
in class
AbstractMavenReport
AbstractMavenReport.getSiteRenderer()
protected String getOutputDirectory()
getOutputDirectory
in class
AbstractMavenReport
AbstractMavenReport.getOutputDirectory()
public String getName(Locale locale)
MavenReport.getName(java.util.Locale)
public String getDescription(Locale locale)
MavenReport.getDescription(java.util.Locale)
public void execute() throws org.apache.maven.plugin.MojoExecutionException
execute
in interface
org.apache.maven.plugin.Mojo
execute
in class
AbstractMavenReport
org.apache.maven.plugin.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 ResourceBundle getBundle(Locale locale)
locale
- the locale for which the resource bundle is requested.
public String getOutputName()
MavenReport.getOutputName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |