@Mojo(name="test-jar", defaultPhase=PACKAGE, requiresDependencyResolution=TEST, threadSafe=true) public class TestJavadocJar extends JavadocJar
test Java code
in an NON aggregator project into
a jar using the standard Javadoc Tool.ARGFILE_FILE_NAME, DEBUG_JAVADOC_SCRIPT_NAME, DEFAULT_JAVA_API_LINKS, failOnError, FILES_FILE_NAME, JAVADOC_RESOURCES_ATTACHMENT_CLASSIFIER, links, OPTIONS_FILE_NAME, PACKAGES_FILE_NAME, project, session, skip, TEST_JAVADOC_RESOURCES_ATTACHMENT_CLASSIFIER, useStandardDocletOptions
Constructor and Description |
---|
TestJavadocJar() |
Modifier and Type | Method and Description |
---|---|
protected SourceResolverConfig |
configureDependencySourceResolution(SourceResolverConfig config)
Overriden to enable the resolution of -test-sources jar files.
|
protected String |
getClassifier() |
protected ScopeFilter |
getDependencyScopeFilter() |
protected String |
getDoctitle() |
protected List<String> |
getExecutionProjectSourceRoots(MavenProject p) |
protected File |
getJavadocDirectory() |
protected String |
getOutputDirectory() |
protected File |
getOverview() |
protected List<File> |
getProjectBuildOutputDirs(MavenProject p) |
protected List<String> |
getProjectSourceRoots(MavenProject p) |
protected String |
getWindowtitle() |
protected boolean |
isTest()
Indicates whether this goal generates documentation for the
Java Test code . |
doExecute
buildJavadocOptions, canGenerateReport, collect, execute, executeReport, failOnError, getAttachmentClassifier, getDependencySourcePaths, getDoclint, getFiles, getJavadocOptionsFile, getProject, getSourcePaths, getToolchain, isAggregator, isValidJavadocLink, logError, resolveDependency, verifyRemovedParameter
getLog, getPluginContext, setLog, setPluginContext
protected String getClassifier()
getClassifier
in class JavadocJar
javadoc
or test-javadoc
protected String getOutputDirectory()
getOutputDirectory
in class AbstractJavadocMojo
protected 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 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 ScopeFilter getDependencyScopeFilter()
getDependencyScopeFilter
in class AbstractJavadocMojo
protected SourceResolverConfig configureDependencySourceResolution(SourceResolverConfig config)
configureDependencySourceResolution
in class AbstractJavadocMojo
config
- SourceResolverConfig
protected boolean isTest()
AbstractJavadocMojo
Java Test code
.isTest
in class AbstractJavadocMojo
true
if the goal generates Test Javadocs, false
otherwise.Copyright © 2004–2017 The Apache Software Foundation. All rights reserved.