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 String
    Directory where the Xref files will be copied to.
    private List<String>
    Test directories of the project.
    private File
    Directory 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

    Fields inherited from interface org.apache.maven.reporting.MavenReport

    CATEGORY_PROJECT_INFORMATION, CATEGORY_PROJECT_REPORTS, ROLE

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    protected String
    Abstract method that returns the target directory where the generated JXR reports will be put.
    protected File
    Abstract method that returns the directory of the javadoc files.
    getName(Locale locale)
     
     
    protected List<String>
    Abstract method that returns the specified source directories that will be included in the JXR report generation.
    protected 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
    void
    setReportOutputDirectory(File reportOutputDirectory)
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.maven.reporting.MavenReport

    getOutputPath
  • Field Details

    • sourceDirs

      @Parameter(defaultValue="${project.testCompileSourceRoots}", required=true, readonly=true) private List<String> sourceDirs
      Test directories of the project.
    • destDir

      @Parameter(defaultValue="${project.reporting.outputDirectory}/xref-test") private String destDir
      Directory where the Xref files will be copied to.
    • testJavadocDir

      @Parameter(defaultValue="${project.reporting.outputDirectory}/testapidocs") private File testJavadocDir
      Directory where Test Javadoc is generated for this project.
  • Constructor Details

    • JxrTestReport

      public JxrTestReport()
  • Method Details

    • getSourceRoots

      protected List<String> getSourceRoots()
      Description copied from class: AbstractJxrReport
      Abstract method that returns the specified source directories that will be included in the JXR report generation.
      Specified by:
      getSourceRoots in class AbstractJxrReport
      Returns:
      a List of the source directories
    • getSourceRoots

      protected List<String> getSourceRoots(org.apache.maven.project.MavenProject project)
      Description copied from class: AbstractJxrReport
      Abstract method that returns the compile source directories of the specified project that will be included in the JXR report generation
      Specified by:
      getSourceRoots in class AbstractJxrReport
      Parameters:
      project - the MavenProject where the JXR report plugin will be executed
      Returns:
      a List of the source directories
    • getDestinationDirectory

      protected String getDestinationDirectory()
      Description copied from class: AbstractJxrReport
      Abstract method that returns the target directory where the generated JXR reports will be put.
      Specified by:
      getDestinationDirectory in class AbstractJxrReport
      Returns:
      a String that contains the target directory name
    • getDescription

      public String getDescription(Locale locale)
    • getName

      public String getName(Locale locale)
    • getOutputName

      public String getOutputName()
    • getJavadocDir

      protected File getJavadocDir()
      Description copied from class: AbstractJxrReport
      Abstract method that returns the directory of the javadoc files.
      Specified by:
      getJavadocDir in class AbstractJxrReport
      Returns:
      a File for the directory of the javadocs
    • setReportOutputDirectory

      public void setReportOutputDirectory(File reportOutputDirectory)
      Specified by:
      setReportOutputDirectory in interface org.apache.maven.reporting.MavenReport
      Overrides:
      setReportOutputDirectory in class org.apache.maven.reporting.AbstractMavenReport