Class TestJavadocReport

  • 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:
    AggregatorTestJavadocReport, TestJavadocNoForkReport

    @Mojo(name="test-javadoc",
          requiresDependencyResolution=TEST,
          threadSafe=true)
    @Execute(phase=GENERATE_TEST_SOURCES)
    public class TestJavadocReport
    extends JavadocReport
    Generates documentation for the Java Test code in an NON aggregator project using the standard Javadoc Tool.
    Since:
    2.3
    Author:
    Vincent Siveton
    See Also:
    Javadoc Tool
    • Constructor Detail

      • TestJavadocReport

        public TestJavadocReport()
    • Method Detail

      • executeReport

        protected void executeReport​(Locale unusedLocale)
                              throws org.apache.maven.reporting.MavenReportException
        Description copied from class: AbstractJavadocMojo
        The package documentation details the Javadoc Options used by this Plugin.
        Overrides:
        executeReport in class AbstractJavadocMojo
        Parameters:
        unusedLocale - the wanted locale (actually unused).
        Throws:
        org.apache.maven.reporting.MavenReportException - if any
      • getOutputName

        public String getOutputName()
        Description copied from class: JavadocReport
        Specified by:
        getOutputName in interface org.apache.maven.reporting.MavenReport
        Overrides:
        getOutputName in class JavadocReport
      • setReportOutputDirectory

        public void setReportOutputDirectory​(File reportOutputDirectory)
        Method to set the directory where the generated reports will be put
        Specified by:
        setReportOutputDirectory in interface org.apache.maven.reporting.MavenReport
        Overrides:
        setReportOutputDirectory in class JavadocReport
        Parameters:
        reportOutputDirectory - the directory file to be set
      • setDestDir

        public void setDestDir​(String destDir)
        Overrides:
        setDestDir in class JavadocReport
        Parameters:
        destDir - the destination directory
      • getProjectBuildOutputDirs

        protected List<File> getProjectBuildOutputDirs​(org.apache.maven.project.MavenProject p)
        Overrides:
        getProjectBuildOutputDirs in class AbstractJavadocMojo
        Parameters:
        p - not null maven project
        Returns:
        the list of directories where compiled classes are placed for the given project. These dirs are added to the javadoc classpath.
      • getProjectSourceRoots

        protected List<String> getProjectSourceRoots​(org.apache.maven.project.MavenProject p)
        Overrides:
        getProjectSourceRoots in class AbstractJavadocMojo
        Parameters:
        p - not null maven project
        Returns:
        the list of source paths for the given project
      • getExecutionProjectSourceRoots

        protected List<String> getExecutionProjectSourceRoots​(org.apache.maven.project.MavenProject p)
        Overrides:
        getExecutionProjectSourceRoots in class AbstractJavadocMojo
        Parameters:
        p - not null maven project
        Returns:
        the list of source paths for the execution project of the given project
      • getOverview

        protected File getOverview()
        Overrides:
        getOverview in class AbstractJavadocMojo
        Returns:
        the overview documentation file from the user parameter or from the javadocdirectory
      • isTest

        protected boolean isTest()
        Description copied from class: AbstractJavadocMojo
        Indicates whether this goal generates documentation for the Java Test code.
        Overrides:
        isTest in class AbstractJavadocMojo
        Returns:
        true if the goal generates Test Javadocs, false otherwise.