|
||||||||||
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.issues.AbstractReportMojo
public abstract class AbstractReportMojo
The issues Mojo reports on issues.
Field Summary | |
---|---|
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 File |
outputDirectory Specifies the directory where the report will written to. |
protected MavenProject |
project The Maven project. |
protected org.apache.maven.artifact.resolver.ArtifactResolver |
resolver The resolver for resolving artifacts. |
protected 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 | |
---|---|
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. |
protected String |
getOutputDirectory() |
protected MavenProject |
getProject() |
protected Renderer |
getSiteRenderer() |
protected void |
provideSink() Ensures that a writeable sink is provided. |
Methods inherited from class org.apache.maven.reporting.AbstractMavenReport |
---|
canGenerateReport, 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 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 Renderer getSiteRenderer()
getSiteRenderer
in class
AbstractMavenReport
AbstractMavenReport.getSiteRenderer()
protected 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.
protected void executeReport(Locale locale) throws MavenReportException
Configures the plugin logger.
executeReport
in class
AbstractMavenReport
MavenReportException
AbstractMavenReport.executeReport(java.util.Locale)
protected void provideSink() throws MojoExecutionException
Stolen from the changes plugin.
MojoExecutionException
- if the sink cannot be created.
protected 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 |