Package org.codehaus.mojo.javacc
Class JJDocMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.maven.reporting.AbstractMavenReport
-
- org.codehaus.mojo.javacc.JJDocMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo,org.apache.maven.reporting.MavenMultiPageReport,org.apache.maven.reporting.MavenReport
@Mojo(name="jjdoc", threadSafe=true) @Execute(phase=GENERATE_SOURCES) public class JJDocMojo extends org.apache.maven.reporting.AbstractMavenReportJJDoc takes a JavaCC parser specification and produces documentation for the BNF grammar. This mojo will search the source directory for all*.jjfiles and run JJDoc once for each file it finds. Each of these output files, along with anindex.htmlfile will be placed in the site directory (target/site/jjdoc), and a link will be created in the "Project Reports" menu of the generated site.- Since:
- 2.3
- Author:
- Paul Gier
- See Also:
- JJDoc Documentation
-
-
Field Summary
-
Fields inherited from class org.apache.maven.reporting.AbstractMavenReport
locale, mojoExecution, outputFormat, outputTimestamp, project, reactorProjects, remoteProjectRepositories, repoSession, siteDirectory, siteRenderer, siteTool
-
-
Constructor Summary
Constructors Constructor Description JJDocMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancanGenerateReport()protected voidexecuteReport(Locale locale)Run the actual report.StringgetDescription(Locale locale)StringgetName(Locale locale)protected StringgetOutputDirectory()Get the output directory of the report if run directly from the command line.StringgetOutputName()Deprecated.UsegetOutputPath()instead.StringgetOutputPath()-
Methods inherited from class org.apache.maven.reporting.AbstractMavenReport
closeReport, constructXrefLocation, execute, generate, generate, getCategoryName, getInputEncoding, getLocale, getOutputEncoding, getProject, getReportOutputDirectory, getSink, getSinkFactory, getSiteRenderer, getXrefLocation, isExternalReport, setReportOutputDirectory
-
-
-
-
Method Detail
-
getOutputDirectory
protected String getOutputDirectory()
Get the output directory of the report if run directly from the command line.- Overrides:
getOutputDirectoryin classorg.apache.maven.reporting.AbstractMavenReport- Returns:
- The report output directory.
- See Also:
AbstractMavenReport.getOutputDirectory()
-
getName
public String getName(Locale locale)
- Parameters:
locale- The locale to use for this report.- Returns:
- The name of this report.
- See Also:
MavenReport.getName(java.util.Locale)
-
getDescription
public String getDescription(Locale locale)
- Parameters:
locale- The locale to use for this report.- Returns:
- The description of this report.
- See Also:
MavenReport.getDescription(java.util.Locale)
-
getOutputPath
public String getOutputPath()
- Returns:
- The path of the main report file.
- See Also:
MavenReport.getOutputPath()
-
getOutputName
@Deprecated public String getOutputName()
Deprecated.UsegetOutputPath()instead.- Returns:
- The name of the main report file.
- See Also:
MavenReport.getOutputName()
-
canGenerateReport
public boolean canGenerateReport()
- Specified by:
canGenerateReportin interfaceorg.apache.maven.reporting.MavenReport- Overrides:
canGenerateReportin classorg.apache.maven.reporting.AbstractMavenReport- Returns:
trueif the configured source directories are not empty,falseotherwise.- See Also:
MavenReport.canGenerateReport()
-
executeReport
protected void executeReport(Locale locale) throws org.apache.maven.reporting.MavenReportException
Run the actual report.- Specified by:
executeReportin classorg.apache.maven.reporting.AbstractMavenReport- Parameters:
locale- The locale to use for this report.- Throws:
org.apache.maven.reporting.MavenReportException- If the report generation failed.
-
-