Package org.apache.maven.plugins.javadoc
Class JavadocReport
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.maven.plugins.javadoc.AbstractJavadocMojo
-
- org.apache.maven.plugins.javadoc.JavadocReport
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
,org.apache.maven.reporting.MavenMultiPageReport
,org.apache.maven.reporting.MavenReport
- Direct Known Subclasses:
AggregatorJavadocReport
,JavadocNoForkReport
,TestJavadocReport
@Mojo(name="javadoc", requiresDependencyResolution=COMPILE, threadSafe=true) @Execute(phase=GENERATE_SOURCES) public class JavadocReport extends AbstractJavadocMojo implements org.apache.maven.reporting.MavenMultiPageReport
Generates documentation for theJava code
in a NON aggregator project using the standard Javadoc Tool.- Since:
- 2.0
- Author:
- Emmanuel Venisse, Vincent Siveton
- See Also:
- Javadoc Tool
-
-
Field Summary
-
Fields inherited from class org.apache.maven.plugins.javadoc.AbstractJavadocMojo
ARGFILE_FILE_NAME, DEBUG_JAVADOC_SCRIPT_NAME, failOnError, failOnWarnings, FILES_FILE_NAME, JAVADOC_RESOURCES_ATTACHMENT_CLASSIFIER, links, mojoExecution, OPTIONS_FILE_NAME, outputDirectory, outputTimestamp, PACKAGES_FILE_NAME, project, reactorProjects, session, skip, TEST_JAVADOC_RESOURCES_ATTACHMENT_CLASSIFIER, useStandardDocletOptions
-
-
Constructor Summary
Constructors Constructor Description JavadocReport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canGenerateReport()
The logic is the following: Can-generate-report Matrix isAggregator hasSourceFiles isRootProject Generate Report True True True True True True False False True False True False True False False False False True True True False True False True False False True False False False False Falsevoid
doExecute()
void
generate(org.apache.maven.doxia.sink.Sink sink, Locale locale)
void
generate(org.apache.maven.doxia.sink.Sink sink, org.apache.maven.doxia.sink.SinkFactory sinkFactory, Locale locale)
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
setDestDir(String theDestDir)
void
setReportOutputDirectory(File reportOutputDirectory)
Method to set the directory where the generated reports will be put-
Methods inherited from class org.apache.maven.plugins.javadoc.AbstractJavadocMojo
buildJavadocOptions, canGenerateReport, configureDependencySourceResolution, execute, executeReport, failOnError, getAttachmentClassifier, getClassesFile, getDefaultJavadocApiLink, getDependencyScopeFilter, getDependencySourcePaths, getDoclint, getDoctitle, getExecutionProjectSourceRoots, getFiles, getJavadocDirectory, getJavadocOptionsFile, getOutputDirectory, getOverview, getProject, getProjectBuildOutputDirs, getProjectSourceRoots, getReactorProjects, getSourcePaths, getToolchain, getWindowtitle, isAggregator, isSkippedJavadoc, isSkippedModule, isTest, isValidJavadocLink, logError, resolveDependency, verifyRemovedParameter
-
-
-
-
Method Detail
-
getName
public String getName(Locale locale)
- Specified by:
getName
in interfaceorg.apache.maven.reporting.MavenReport
-
getDescription
public String getDescription(Locale locale)
- Specified by:
getDescription
in interfaceorg.apache.maven.reporting.MavenReport
-
generate
public void generate(org.codehaus.doxia.sink.Sink sink, Locale locale) throws org.apache.maven.reporting.MavenReportException
- Specified by:
generate
in interfaceorg.apache.maven.reporting.MavenReport
- Throws:
org.apache.maven.reporting.MavenReportException
-
generate
public void generate(org.apache.maven.doxia.sink.Sink sink, Locale locale) throws org.apache.maven.reporting.MavenReportException
- Throws:
org.apache.maven.reporting.MavenReportException
-
generate
public void generate(org.apache.maven.doxia.sink.Sink sink, org.apache.maven.doxia.sink.SinkFactory sinkFactory, Locale locale) throws org.apache.maven.reporting.MavenReportException
- Specified by:
generate
in interfaceorg.apache.maven.reporting.MavenMultiPageReport
- Throws:
org.apache.maven.reporting.MavenReportException
-
getOutputName
public String getOutputName()
- Specified by:
getOutputName
in interfaceorg.apache.maven.reporting.MavenReport
-
isExternalReport
public boolean isExternalReport()
- Specified by:
isExternalReport
in interfaceorg.apache.maven.reporting.MavenReport
-
canGenerateReport
public boolean canGenerateReport()
The logic is the following:Can-generate-report Matrix isAggregator hasSourceFiles isRootProject Generate Report True True True True True True False False True False True False True False False False False True True True False True False True False False True False False False False False - Specified by:
canGenerateReport
in interfaceorg.apache.maven.reporting.MavenReport
-
getCategoryName
public String getCategoryName()
- Specified by:
getCategoryName
in interfaceorg.apache.maven.reporting.MavenReport
-
getReportOutputDirectory
public File getReportOutputDirectory()
- Specified by:
getReportOutputDirectory
in interfaceorg.apache.maven.reporting.MavenReport
-
setReportOutputDirectory
public void setReportOutputDirectory(File reportOutputDirectory)
Method to set the directory where the generated reports will be put- Specified by:
setReportOutputDirectory
in interfaceorg.apache.maven.reporting.MavenReport
- Parameters:
reportOutputDirectory
- the directory file to be set
-
setDestDir
public void setDestDir(String theDestDir)
- Parameters:
theDestDir
- the destination directory
-
doExecute
public void doExecute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
-