Package org.apache.maven.plugin.jxr
Class JxrTestReport
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.reporting.AbstractMavenReport
org.apache.maven.plugin.jxr.AbstractJxrReport
org.apache.maven.plugin.jxr.JxrTestReport
- 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:
AggregatorJxrTestReport,JxrTestNoForkReport
@Mojo(name="test-jxr")
@Execute(phase=GENERATE_TEST_SOURCES)
public class JxrTestReport
extends AbstractJxrReport
Creates an html-based, cross referenced version of Java source code
for a project's test sources.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringDirectory where the Xref files will be copied to.Test directories of the project.private FileDirectory where Test Javadoc is generated for this project.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.testCompileSourceRoots}", required=true, readonly=true) private List<String> sourceDirsTest directories of the project. -
destDir
Directory where the Xref files will be copied to. -
testJavadocDir
@Parameter(defaultValue="${project.reporting.outputDirectory}/testapidocs") private File testJavadocDirDirectory where Test Javadoc is generated for this project.
-
-
Constructor Details
-
JxrTestReport
public JxrTestReport()
-
-
Method Details
-
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
-
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
-
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
-