|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.apache.maven.reporting.AbstractMavenReport
public abstract class AbstractMavenReport
The basis for a Maven report which can be generated both as part of a site generation or as a direct standalone invocation.
execute(),
generate(Sink, Locale),
executeReport(Locale)| Field Summary |
|---|
| 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 | |
|---|---|
AbstractMavenReport()
|
|
| Method Summary | |
|---|---|
boolean |
canGenerateReport()
|
protected void |
closeReport()
|
void |
execute()
This method is called when the report generation is invoked directly as a standalone Mojo. |
protected abstract void |
executeReport(java.util.Locale locale)
Execute the generation of the report. |
void |
generate(org.codehaus.doxia.sink.Sink sink,
java.util.Locale locale)
This method is called when the report generation is invoked by maven-site-plugin. |
java.lang.String |
getCategoryName()
|
protected abstract java.lang.String |
getOutputDirectory()
The output directory when the mojo is run directly from the command line. |
protected abstract org.apache.maven.project.MavenProject |
getProject()
|
java.io.File |
getReportOutputDirectory()
|
org.apache.maven.doxia.sink.Sink |
getSink()
|
protected abstract org.apache.maven.doxia.siterenderer.Renderer |
getSiteRenderer()
|
boolean |
isExternalReport()
|
void |
setReportOutputDirectory(java.io.File reportOutputDirectory)
|
| 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 |
| Constructor Detail |
|---|
public AbstractMavenReport()
| Method Detail |
|---|
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
execute in interface org.apache.maven.plugin.Mojoorg.apache.maven.plugin.MojoExecutionException - if an error uccurs when generating the reportorg.apache.maven.plugins.site.ReportDocumentRender,
Mojo.execute()
public void generate(org.codehaus.doxia.sink.Sink sink,
java.util.Locale locale)
throws org.apache.maven.reporting.MavenReportException
generate in interface org.apache.maven.reporting.MavenReportorg.apache.maven.reporting.MavenReportExceptionMavenReport.generate(org.codehaus.doxia.sink.Sink, java.util.Locale)protected void closeReport()
public java.lang.String getCategoryName()
getCategoryName in interface org.apache.maven.reporting.MavenReportpublic java.io.File getReportOutputDirectory()
getReportOutputDirectory in interface org.apache.maven.reporting.MavenReportpublic void setReportOutputDirectory(java.io.File reportOutputDirectory)
setReportOutputDirectory in interface org.apache.maven.reporting.MavenReportpublic org.apache.maven.doxia.sink.Sink getSink()
public boolean isExternalReport()
isExternalReport in interface org.apache.maven.reporting.MavenReportMavenReport.isExternalReport()public boolean canGenerateReport()
canGenerateReport in interface org.apache.maven.reporting.MavenReportprotected abstract org.apache.maven.doxia.siterenderer.Renderer getSiteRenderer()
protected abstract java.lang.String getOutputDirectory()
MavenReport.setReportOutputDirectory(java.io.File). In this case, the return
value of this method is irrelevant. Therefore, developers should always call getReportOutputDirectory()
to get the effective output directory for the report. The later method will eventually fallback to this method
if the mojo is not run as part of a site generation.
protected abstract org.apache.maven.project.MavenProject getProject()
protected abstract void executeReport(java.util.Locale locale)
throws org.apache.maven.reporting.MavenReportException
locale - the wanted locale to return the report's description, could be null.
MavenReportException - if any
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||