Package org.apache.maven.plugin.jxr
Class JxrReport
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.reporting.AbstractMavenReport
org.apache.maven.plugin.jxr.AbstractJxrReport
org.apache.maven.plugin.jxr.JxrReport
- 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:
AggregatorJxrReport,JxrNoForkReport
Creates an html-based, cross referenced version of Java source code
for a project.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringDirectory where the Xref files will be copied to.private FileDirectory where Javadoc is generated for this project.Source directories of the project.private StringSpecifies the source path where the java files are located.Fields inherited from class org.apache.maven.plugin.jxr.AbstractJxrReport
reactorProjects, skipFields inherited from class org.apache.maven.reporting.AbstractMavenReport
locale, mojoExecution, outputDirectory, outputFormat, outputTimestamp, project, remoteProjectRepositories, repoSession, siteDirectory, 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 TypeMethodDescriptiongetDescription(Locale locale) protected StringAbstract method that returns the target directory where the generated JXR reports will be put.protected FileAbstract method that returns the directory of the javadoc files.Abstract method that returns the specified source directories that will be included in the JXR report generation.getSourceRoots(org.apache.maven.project.MavenProject project) Abstract method that returns the compile source directories of the specified project that will be included in the JXR report generationvoidsetReportOutputDirectory(File reportOutputDirectory) Methods inherited from class org.apache.maven.plugin.jxr.AbstractJxrReport
canGenerateReport, constructSourceDirs, executeReport, getBundle, getProject, getSession, init, isAggregate, isExternalReport, pruneSourceDirsMethods inherited from class org.apache.maven.reporting.AbstractMavenReport
closeReport, constructXrefLocation, execute, generate, generate, getCategoryName, getInputEncoding, getLocale, getOutputDirectory, getOutputEncoding, getReportOutputDirectory, getSink, getSinkFactory, getSiteRenderer, getXrefLocationMethods 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
-
Field Details
-
sourceDirs
@Parameter(defaultValue="${project.compileSourceRoots}", required=true, readonly=true) private List<String> sourceDirsSource directories of the project. -
sourcePath
Specifies the source path where the java files are located. The paths are separated by ';'. -
destDir
Directory where the Xref files will be copied to. -
javadocDir
Directory where Javadoc is generated for this project.
-
-
Constructor Details
-
JxrReport
public JxrReport()
-
-
Method Details
-
getDestinationDirectory
Description copied from class:AbstractJxrReportAbstract method that returns the target directory where the generated JXR reports will be put.- Specified by:
getDestinationDirectoryin classAbstractJxrReport- Returns:
- a String that contains the target directory name
-
getSourceRoots
Description copied from class:AbstractJxrReportAbstract method that returns the specified source directories that will be included in the JXR report generation.- Specified by:
getSourceRootsin classAbstractJxrReport- Returns:
- a List of the source directories
-
getSourceRoots
Description copied from class:AbstractJxrReportAbstract method that returns the compile source directories of the specified project that will be included in the JXR report generation- Specified by:
getSourceRootsin classAbstractJxrReport- Parameters:
project- the MavenProject where the JXR report plugin will be executed- Returns:
- a List of the source directories
-
getDescription
-
getName
-
getOutputName
-
getJavadocDir
Description copied from class:AbstractJxrReportAbstract method that returns the directory of the javadoc files.- Specified by:
getJavadocDirin classAbstractJxrReport- Returns:
- a File for the directory of the javadocs
-
setReportOutputDirectory
- Specified by:
setReportOutputDirectoryin interfaceorg.apache.maven.reporting.MavenReport- Overrides:
setReportOutputDirectoryin classorg.apache.maven.reporting.AbstractMavenReport
-