@Mojo(name="test-javadoc", requiresDependencyResolution=TEST, threadSafe=true) @Execute(phase=GENERATE_TEST_SOURCES) public class TestJavadocReport extends JavadocReport
Java Test code
in an NON aggregator project using the standard
Javadoc Tool.ARGFILE_FILE_NAME, DEBUG_JAVADOC_SCRIPT_NAME, failOnError, failOnWarnings, FILES_FILE_NAME, JAVADOC_RESOURCES_ATTACHMENT_CLASSIFIER, links, OPTIONS_FILE_NAME, outputDirectory, outputTimestamp, PACKAGES_FILE_NAME, project, session, skip, TEST_JAVADOC_RESOURCES_ATTACHMENT_CLASSIFIER, useStandardDocletOptions
CATEGORY_PROJECT_INFORMATION, CATEGORY_PROJECT_REPORTS, ROLE
Constructor and Description |
---|
TestJavadocReport() |
Modifier and Type | Method and Description |
---|---|
protected SourceResolverConfig |
configureDependencySourceResolution(SourceResolverConfig config)
Overridden to enable the resolution of -test-sources jar files.
|
protected void |
executeReport(Locale unusedLocale)
The package documentation details the
Javadoc Options used by this Plugin.
|
protected org.apache.maven.shared.artifact.filter.resolve.ScopeFilter |
getDependencyScopeFilter() |
String |
getDescription(Locale locale) |
protected String |
getDoctitle() |
protected List<String> |
getExecutionProjectSourceRoots(MavenProject p) |
protected File |
getJavadocDirectory() |
String |
getName(Locale locale) |
String |
getOutputName() |
protected File |
getOverview() |
protected List<File> |
getProjectBuildOutputDirs(MavenProject p) |
protected List<String> |
getProjectSourceRoots(MavenProject p) |
File |
getReportOutputDirectory() |
protected String |
getWindowtitle() |
protected boolean |
isTest()
Indicates whether this goal generates documentation for the
Java Test code . |
void |
setDestDir(String destDir) |
void |
setReportOutputDirectory(File reportOutputDirectory)
Method to set the directory where the generated reports will be put
|
canGenerateReport, doExecute, generate, generate, generate, getCategoryName, isExternalReport
buildJavadocOptions, canGenerateReport, execute, failOnError, getAttachmentClassifier, getClassesFile, getDefaultJavadocApiLink, getDependencySourcePaths, getDoclint, getFiles, getJavadocOptionsFile, getOutputDirectory, getProject, getSourcePaths, getToolchain, isAggregator, isSkippedJavadoc, isSkippedModule, isValidJavadocLink, logError, resolveDependency, verifyRemovedParameter
getLog, getPluginContext, setLog, setPluginContext
protected void executeReport(Locale unusedLocale) throws MavenReportException
AbstractJavadocMojo
executeReport
in class AbstractJavadocMojo
unusedLocale
- the wanted locale (actually unused).MavenReportException
- if anypublic String getName(Locale locale)
JavadocReport
getName
in interface MavenReport
getName
in class JavadocReport
public String getDescription(Locale locale)
JavadocReport
getDescription
in interface MavenReport
getDescription
in class JavadocReport
public String getOutputName()
JavadocReport
getOutputName
in interface MavenReport
getOutputName
in class JavadocReport
public File getReportOutputDirectory()
JavadocReport
getReportOutputDirectory
in interface MavenReport
getReportOutputDirectory
in class JavadocReport
public void setReportOutputDirectory(File reportOutputDirectory)
setReportOutputDirectory
in interface MavenReport
setReportOutputDirectory
in class JavadocReport
reportOutputDirectory
- the directory file to be setpublic void setDestDir(String destDir)
setDestDir
in class JavadocReport
destDir
- The destination directory.protected List<File> getProjectBuildOutputDirs(MavenProject p)
getProjectBuildOutputDirs
in class AbstractJavadocMojo
p
- not null maven projectprotected List<String> getProjectSourceRoots(MavenProject p)
getProjectSourceRoots
in class AbstractJavadocMojo
p
- not null maven projectprotected List<String> getExecutionProjectSourceRoots(MavenProject p)
getExecutionProjectSourceRoots
in class AbstractJavadocMojo
p
- not null maven projectprotected File getJavadocDirectory()
getJavadocDirectory
in class AbstractJavadocMojo
protected String getDoctitle()
getDoctitle
in class AbstractJavadocMojo
protected File getOverview()
getOverview
in class AbstractJavadocMojo
javadocdirectory
protected String getWindowtitle()
getWindowtitle
in class AbstractJavadocMojo
protected org.apache.maven.shared.artifact.filter.resolve.ScopeFilter getDependencyScopeFilter()
getDependencyScopeFilter
in class AbstractJavadocMojo
protected SourceResolverConfig configureDependencySourceResolution(SourceResolverConfig config)
configureDependencySourceResolution
in class AbstractJavadocMojo
config
- SourceResolverConfig
SourceResolverConfig
protected boolean isTest()
AbstractJavadocMojo
Java Test code
.isTest
in class AbstractJavadocMojo
true
if the goal generates Test Javadocs, false
otherwise.Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.