Package org.apache.maven.plugins.javadoc
Class TestResourcesBundleMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.maven.plugins.javadoc.AbstractJavadocMojo
-
- org.apache.maven.plugins.javadoc.ResourcesBundleMojo
-
- org.apache.maven.plugins.javadoc.TestResourcesBundleMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="test-resource-bundle", defaultPhase=PACKAGE, requiresDependencyResolution=TEST, threadSafe=true) public class TestResourcesBundleMojo extends ResourcesBundleMojo
BundleTestJavadocJar.testJavadocDirectory
, along with javadoc configuration options fromAbstractJavadocMojo
such as taglet, doclet, and link information into a deployable artifact. This artifact can then be consumed by the javadoc plugin mojos when used by theincludeDependencySources
option, to generate javadocs that are somewhat consistent with those generated in the original project itself.- Since:
- 2.7
-
-
Field Summary
-
Fields inherited from class org.apache.maven.plugins.javadoc.ResourcesBundleMojo
BUNDLE_OPTIONS_PATH, RESOURCES_DIR_PATH
-
Fields inherited from class org.apache.maven.plugins.javadoc.AbstractJavadocMojo
ARGFILE_FILE_NAME, DEBUG_JAVADOC_SCRIPT_NAME, failOnError, failOnWarnings, FILES_FILE_NAME, JAVADOC_RESOURCES_ATTACHMENT_CLASSIFIER, links, mojoExecution, OPTIONS_FILE_NAME, outputDirectory, outputTimestamp, PACKAGES_FILE_NAME, project, reactorProjects, session, skip, TEST_JAVADOC_RESOURCES_ATTACHMENT_CLASSIFIER, useStandardDocletOptions
-
-
Constructor Summary
Constructors Constructor Description TestResourcesBundleMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getAttachmentClassifier()
Override this if you need to provide a bundle attachment classifier, as in the case of test javadocs.protected File
getJavadocDirectory()
protected boolean
isTest()
Indicates whether this goal generates documentation for theJava Test code
.-
Methods inherited from class org.apache.maven.plugins.javadoc.ResourcesBundleMojo
doExecute
-
Methods inherited from class org.apache.maven.plugins.javadoc.AbstractJavadocMojo
buildJavadocOptions, canGenerateReport, configureDependencySourceResolution, execute, executeReport, failOnError, getClassesFile, getDefaultJavadocApiLink, getDependencyScopeFilter, getDependencySourcePaths, getDoclint, getDoctitle, getExecutionProjectSourceRoots, getFiles, getJavadocOptionsFile, getOutputDirectory, getOverview, getProject, getProjectBuildOutputDirs, getProjectSourceRoots, getReactorProjects, getSourcePaths, getToolchain, getWindowtitle, isAggregator, isSkippedJavadoc, isSkippedModule, isValidJavadocLink, logError, resolveDependency, verifyRemovedParameter
-
-
-
-
Method Detail
-
getAttachmentClassifier
protected String getAttachmentClassifier()
Description copied from class:AbstractJavadocMojo
Override this if you need to provide a bundle attachment classifier, as in the case of test javadocs.- Overrides:
getAttachmentClassifier
in classAbstractJavadocMojo
- Returns:
- The attachment classifier.
-
getJavadocDirectory
protected File getJavadocDirectory()
- Overrides:
getJavadocDirectory
in classAbstractJavadocMojo
- Returns:
- the current javadoc directory
-
isTest
protected boolean isTest()
Description copied from class:AbstractJavadocMojo
Indicates whether this goal generates documentation for theJava Test code
.- Overrides:
isTest
in classAbstractJavadocMojo
- Returns:
true
if the goal generates Test Javadocs,false
otherwise.
-
-