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
Fields Modifier and Type Field Description private java.lang.StringdestDirDirectory where the Xref files will be copied to.private java.util.List<java.lang.String>sourceDirsTest directories of the project.private java.io.FiletestJavadocDirDirectory where Test Javadoc is generated for this project.-
Fields inherited from class org.apache.maven.plugin.jxr.AbstractJxrReport
reactorProjects, skip
-
Fields inherited from class org.apache.maven.reporting.AbstractMavenReport
locale, mojoExecution, outputDirectory, outputFormat, outputTimestamp, project, remoteProjectRepositories, repoSession, siteDirectory, siteRenderer, siteTool
-
-
Constructor Summary
Constructors Constructor Description JxrTestReport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription(java.util.Locale locale)protected java.lang.StringgetDestinationDirectory()Abstract method that returns the target directory where the generated JXR reports will be put.protected java.io.FilegetJavadocDir()Abstract method that returns the directory of the javadoc files.java.lang.StringgetName(java.util.Locale locale)java.lang.StringgetOutputName()protected java.util.List<java.lang.String>getSourceRoots()Abstract method that returns the specified source directories that will be included in the JXR report generation.protected java.util.List<java.lang.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 generationvoidsetReportOutputDirectory(java.io.File reportOutputDirectory)-
Methods inherited from class org.apache.maven.plugin.jxr.AbstractJxrReport
canGenerateReport, constructSourceDirs, executeReport, getBundle, getProject, getSession, init, isAggregate, isExternalReport, pruneSourceDirs
-
Methods inherited from class org.apache.maven.reporting.AbstractMavenReport
closeReport, constructXrefLocation, execute, generate, generate, getCategoryName, getInputEncoding, getLocale, getOutputDirectory, getOutputEncoding, getReportOutputDirectory, getSink, getSinkFactory, getSiteRenderer, getXrefLocation
-
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
-
-
-
Field Detail
-
sourceDirs
@Parameter(defaultValue="${project.testCompileSourceRoots}", required=true, readonly=true) private java.util.List<java.lang.String> sourceDirsTest directories of the project.
-
destDir
@Parameter(defaultValue="${project.reporting.outputDirectory}/xref-test") private java.lang.String destDirDirectory where the Xref files will be copied to.
-
testJavadocDir
@Parameter(defaultValue="${project.reporting.outputDirectory}/testapidocs") private java.io.File testJavadocDirDirectory where Test Javadoc is generated for this project.
-
-
Method Detail
-
getSourceRoots
protected java.util.List<java.lang.String> 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
protected java.util.List<java.lang.String> getSourceRoots(org.apache.maven.project.MavenProject project)
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
protected java.lang.String 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
public java.lang.String getDescription(java.util.Locale locale)
-
getName
public java.lang.String getName(java.util.Locale locale)
-
getOutputName
public java.lang.String getOutputName()
-
getJavadocDir
protected java.io.File 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
public void setReportOutputDirectory(java.io.File reportOutputDirectory)
- Specified by:
setReportOutputDirectoryin interfaceorg.apache.maven.reporting.MavenReport- Overrides:
setReportOutputDirectoryin classorg.apache.maven.reporting.AbstractMavenReport
-
-