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 ResourcesBundleMojoBundleTestJavadocJar.testJavadocDirectory, along with javadoc configuration options fromAbstractJavadocMojosuch as taglet, doclet, and link information into a deployable artifact. This artifact can then be consumed by the javadoc plugin mojos when used by theincludeDependencySourcesoption, 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 StringgetAttachmentClassifier()Override this if you need to provide a bundle attachment classifier, as in the case of test javadocs.protected FilegetJavadocDirectory()protected booleanisTest()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:AbstractJavadocMojoOverride this if you need to provide a bundle attachment classifier, as in the case of test javadocs.- Overrides:
getAttachmentClassifierin classAbstractJavadocMojo- Returns:
- The attachment classifier.
-
getJavadocDirectory
protected File getJavadocDirectory()
- Overrides:
getJavadocDirectoryin classAbstractJavadocMojo- Returns:
- the current javadoc directory
-
isTest
protected boolean isTest()
Description copied from class:AbstractJavadocMojoIndicates whether this goal generates documentation for theJava Test code.- Overrides:
isTestin classAbstractJavadocMojo- Returns:
trueif the goal generates Test Javadocs,falseotherwise.
-
-