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.AbstractMavenReport
JJDoc takes a JavaCC parser specification and produces
documentation for the BNF grammar. This mojo will search the source directory for all
*.jj files and
run JJDoc once for each file it finds. Each of these output files, along with an index.html file 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:
-
Field Summary
Fields inherited from class org.apache.maven.reporting.AbstractMavenReport
localRepository, project, remoteRepositories, siteRenderer, siteToolFields inherited from interface org.apache.maven.reporting.MavenReport
CATEGORY_PROJECT_INFORMATION, CATEGORY_PROJECT_REPORTS, ROLEFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidexecuteReport(Locale locale) Run the actual report.voidgetDescription(Locale locale) protected StringGet the output directory of the report if run directly from the command line.Methods inherited from class org.apache.maven.reporting.AbstractMavenReport
closeReport, execute, generate, generate, getCategoryName, getInputEncoding, getOutputEncoding, getProject, getReportOutputDirectory, getSink, getSinkFactory, getSiteRenderer, isExternalReport, setReportOutputDirectoryMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.reporting.MavenReport
getOutputPath
-
Constructor Details
-
JJDocMojo
public JJDocMojo()
-
-
Method Details
-
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:
-
getName
-
getDescription
-
getOutputName
- Returns:
- The name of the main report file.
- See Also:
-
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:
-
executeReport
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.
-
generate
public void generate(org.apache.maven.doxia.sink.Sink sink, Locale locale) throws org.apache.maven.reporting.MavenReportException - Specified by:
generatein interfaceorg.apache.maven.reporting.MavenReport- Overrides:
generatein classorg.apache.maven.reporting.AbstractMavenReport- Throws:
org.apache.maven.reporting.MavenReportException
-