public abstract class AbstractJxrReport
extends org.apache.maven.reporting.AbstractMavenReport
| Modifier and Type | Field and Description |
|---|---|
protected List<org.apache.maven.project.MavenProject> |
reactorProjects
The projects in the reactor for aggregation report.
|
protected boolean |
skip
Whether to skip this execution.
|
| Constructor and Description |
|---|
AbstractJxrReport() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canGenerateReport() |
protected boolean |
canGenerateReport(List<String> sourceDirs) |
protected List<String> |
constructSourceDirs()
Gets the list of the source directories to be included in the JXR report generation
|
void |
execute() |
protected void |
executeReport(Locale locale) |
protected ResourceBundle |
getBundle(Locale locale)
Returns the correct resource bundle according to the locale
|
protected abstract String |
getDestinationDirectory()
Abstract method that returns the target directory where the generated JXR reports will be put.
|
protected abstract File |
getJavadocDir()
Abstract method that returns the directory of the javadoc files.
|
protected String |
getOutputDirectory() |
protected String |
getOutputEncoding()
Gets the effective reporting output files encoding.
|
org.apache.maven.project.MavenProject |
getProject() |
protected org.apache.maven.doxia.siterenderer.Renderer |
getSiteRenderer() |
protected abstract List<String> |
getSourceRoots()
Abstract method that returns the specified source directories that will be included in the JXR report generation.
|
protected abstract List<String> |
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 generation
|
protected void |
init()
Initialize some attributes required during the report generation
|
protected boolean |
isAggregate()
Is the current report aggregated?
|
boolean |
isExternalReport() |
protected List<String> |
pruneSourceDirs(List<String> sourceDirs)
Compiles the list of directories which contain source files that will be included in the JXR report generation.
|
closeReport, generate, generate, generate, getCategoryName, getInputEncoding, getReportOutputDirectory, getSink, getSinkFactory, setReportOutputDirectorygetLog, getPluginContext, setLog, setPluginContext@Parameter(defaultValue="${reactorProjects}",
readonly=true)
protected List<org.apache.maven.project.MavenProject> reactorProjects
@Parameter(property="maven.jxr.skip",
defaultValue="false")
protected boolean skip
protected String getOutputEncoding()
getOutputEncoding in class org.apache.maven.reporting.AbstractMavenReportnull: defaults to UTF-8
instead.protected List<String> pruneSourceDirs(List<String> sourceDirs)
sourceDirs - the List of the source directoriesprotected void init()
protected org.apache.maven.doxia.siterenderer.Renderer getSiteRenderer()
getSiteRenderer in class org.apache.maven.reporting.AbstractMavenReportprotected String getOutputDirectory()
getOutputDirectory in class org.apache.maven.reporting.AbstractMavenReportpublic org.apache.maven.project.MavenProject getProject()
getProject in class org.apache.maven.reporting.AbstractMavenReportprotected ResourceBundle getBundle(Locale locale)
locale - the locale of the userprotected boolean canGenerateReport(List<String> sourceDirs)
sourceDirs - public void execute()
throws org.apache.maven.plugin.MojoExecutionException
execute in interface org.apache.maven.plugin.Mojoexecute in class org.apache.maven.reporting.AbstractMavenReportorg.apache.maven.plugin.MojoExecutionExceptionprotected void executeReport(Locale locale) throws org.apache.maven.reporting.MavenReportException
executeReport in class org.apache.maven.reporting.AbstractMavenReportorg.apache.maven.reporting.MavenReportExceptionprotected List<String> constructSourceDirs()
public boolean canGenerateReport()
canGenerateReport in interface org.apache.maven.reporting.MavenReportcanGenerateReport in class org.apache.maven.reporting.AbstractMavenReportpublic boolean isExternalReport()
isExternalReport in interface org.apache.maven.reporting.MavenReportisExternalReport in class org.apache.maven.reporting.AbstractMavenReportprotected abstract String getDestinationDirectory()
protected abstract List<String> getSourceRoots()
protected abstract List<String> getSourceRoots(org.apache.maven.project.MavenProject project)
project - the MavenProject where the JXR report plugin will be executedprotected abstract File getJavadocDir()
protected boolean isAggregate()
Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.