@Mojo(name="generate",
defaultPhase=PREPARE_PACKAGE,
aggregator=true)
public class GenerateMojo
extends org.apache.maven.plugin.AbstractMojo
implements org.apache.maven.reporting.MavenReport
| Constructor and Description |
|---|
GenerateMojo() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canGenerateReport() |
void |
execute() |
void |
generate(org.codehaus.doxia.sink.Sink sink,
Locale locale) |
String |
getCategoryName() |
String |
getDescription(Locale locale) |
String |
getName(Locale locale) |
String |
getOutputName() |
File |
getReportOutputDirectory() |
boolean |
isExternalReport() |
void |
setReportOutputDirectory(File file)
When running as a reporting plugin, the output directory is fixed, set by the reporting cycle.
|
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
execute in interface org.apache.maven.plugin.Mojoorg.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionpublic void generate(org.codehaus.doxia.sink.Sink sink,
Locale locale)
throws org.apache.maven.reporting.MavenReportException
generate in interface org.apache.maven.reporting.MavenReportorg.apache.maven.reporting.MavenReportExceptionpublic String getOutputName()
getOutputName in interface org.apache.maven.reporting.MavenReportpublic String getCategoryName()
getCategoryName in interface org.apache.maven.reporting.MavenReportpublic String getName(Locale locale)
getName in interface org.apache.maven.reporting.MavenReportpublic String getDescription(Locale locale)
getDescription in interface org.apache.maven.reporting.MavenReportpublic void setReportOutputDirectory(File file)
setReportOutputDirectory in interface org.apache.maven.reporting.MavenReportfile - public File getReportOutputDirectory()
getReportOutputDirectory in interface org.apache.maven.reporting.MavenReportpublic boolean isExternalReport()
isExternalReport in interface org.apache.maven.reporting.MavenReportpublic boolean canGenerateReport()
canGenerateReport in interface org.apache.maven.reporting.MavenReportCopyright © 2011–2015. All rights reserved.