public abstract class AbstractGroovyDocMojo extends AbstractGroovySourcesMojo
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
attachGroovyDocAnnotation
Enable attaching GroovyDoc annotation.
|
protected String |
classpathResourceManagerClass
Allows you to override the class that is normally org.codehaus.groovy.tools.groovydoc.ClasspathResourceManager,
for use when creating custom GroovyDoc implementations.
|
protected String[] |
defaultClassTemplates
Override the default Groovydoc class-level templates.
|
protected String[] |
defaultDocTemplates
Override the default Groovydoc default top-level templates.
|
protected String[] |
defaultPackageTemplates
Override the default Groovydoc package-level templates.
|
protected boolean |
displayAuthor
Whether to display the author in the generated GroovyDoc.
|
protected String |
docTitle
The page title.
|
protected String |
fileOutputToolClass
Allows you to override the class that is normally org.codehaus.groovy.tools.groovydoc.FileOutputTool, for use
when creating custom GroovyDoc implementations.
|
protected String |
footer
The page footer.
|
protected static Version |
GROOVY_1_5_2
Groovy 1.5.2 version.
|
protected static Version |
GROOVY_1_5_8
Groovy 1.5.8 version.
|
protected static Version |
GROOVY_1_6_0_RC1
Groovy 1.6.0 RC-1 version.
|
protected static Version |
GROOVY_1_6_0_RC2
Groovy 1.6.0 RC-2 version.
|
protected static Version |
GROOVY_3_0_0_ALPHA_4
Groovy 3.0.0 alpha-4 version.
|
protected static Version |
GROOVY_4_0_27
Groovy 4.0.27 version.
|
protected static Version |
GROOVY_5_0_0_ALPHA_1
Groovy 5.0.0-alpha-1 version.
|
protected static Version |
GROOVY_5_0_0_BETA_1
Groovy 5.0.0-beta-1 version.
|
protected String |
groovyDocToolClass
Allows you to override the class that is normally org.codehaus.groovy.tools.groovydoc.GroovyDocTool, for use when
creating custom GroovyDoc implementations.
|
protected String |
header
The page header.
|
protected IncludeClasspath |
includeClasspath
What classpath to include.
|
protected LanguageLevel |
languageLevel
The Java language level to use for GroovyDoc generation.
|
protected String |
linkArgumentClass
Allows you to override the class that is normally org.codehaus.groovy.tools.groovydoc.LinkArgument (or
org.codehaus.groovy.ant.Groovydoc$LinkArgument for Groovy older than 1.6-RC-2), for use when creating custom
GroovyDoc implementations.
|
protected List<Link> |
links
Links to include in the generated GroovyDoc (key is link href, value is comma-separated packages to use that link).
|
protected String |
outputToolClass
Allows you to override the class that is normally org.codehaus.groovy.tools.groovydoc.OutputTool, for use when
creating custom GroovyDoc implementations.
|
protected File |
overviewFile
The HTML file to be used for overview documentation.
|
protected String |
resourceManagerClass
Allows you to override the class that is normally org.codehaus.groovy.tools.groovydoc.ResourceManager, for use
when creating custom GroovyDoc implementations.
|
protected String |
scope
The scope to generate GroovyDoc for.
|
protected boolean |
skipGroovyDoc
Flag to allow GroovyDoc generation to be skipped.
|
protected String |
stylesheetEncoding
The encoding of stylesheetFile.
|
protected File |
stylesheetFile
The stylesheet file (absolute path) to copy to output directory (will overwrite default stylesheet.css).
|
protected String |
windowTitle
The window title.
|
MAIN, TESTclassWrangler, GROOVY_1_5_0, GROOVY_SOURCES_PATTERN, JAVA_1_7, JAVA_1_8, JAVA_12, JAVA_SOURCES_PATTERN, minGroovyVersion, mojoExecution, pluginArtifacts, project, session| Constructor and Description |
|---|
AbstractGroovyDocMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
copyStylesheet(File outputDirectory)
Copies the stylesheet to the specified output directory.
|
protected Object |
createGroovyDocTool(Class<?> groovyDocToolClass,
Class<?> resourceManagerClass,
Properties docProperties,
Object classpathResourceManager,
List<String> sourceDirectories,
GroovyDocTemplateInfo groovyDocTemplateInfo,
List<?> groovyDocLinks)
Instantiates a new GroovyDocTool.
|
protected void |
doGroovyDocGeneration(org.apache.maven.shared.model.fileset.FileSet[] sourceDirectories,
List<?> classpath,
File outputDirectory)
Generates the GroovyDoc for the specified sources.
|
protected void |
generateGroovyDoc(File outputDirectory,
Class<?> groovyDocToolClass,
Class<?> outputToolClass,
Object fileOutputTool,
List<String> groovyDocSources,
Object groovyDocTool)
Performs the GroovyDoc generation.
|
protected List<String> |
setupGroovyDocSources(org.apache.maven.shared.model.fileset.FileSet[] sourceDirectories,
org.apache.maven.shared.model.fileset.util.FileSetManager fileSetManager)
Gets the Groovy sources without the Java sources (since the Java sources don't have Javadoc).
|
protected List<?> |
setupLinks()
Sets up the GroovyDoc links.
|
protected Properties |
setupProperties()
Sets up the documentation properties.
|
getFiles, getFilesets, getTestFiles, getTestFilesetsgetJavaVersion, getJavaVersionString, groovyAtLeast, groovyIs, groovyNewerThan, groovyOlderThan, groovyVersionSupportsAction, isGroovyIndy, isJavaSupportIndy, isJavaSupportParameters, isJavaSupportPreviewFeatures, logPluginClasspath, setupClassWranglergetLog, getPluginContext, setLog, setPluginContextprotected static final Version GROOVY_5_0_0_BETA_1
protected static final Version GROOVY_5_0_0_ALPHA_1
protected static final Version GROOVY_4_0_27
protected static final Version GROOVY_3_0_0_ALPHA_4
protected static final Version GROOVY_1_6_0_RC2
protected static final Version GROOVY_1_6_0_RC1
protected static final Version GROOVY_1_5_8
protected static final Version GROOVY_1_5_2
@Parameter(defaultValue="Groovy Documentation") protected String windowTitle
@Parameter(defaultValue="Groovy Documentation") protected String docTitle
@Parameter(defaultValue="Groovy Documentation") protected String footer
@Parameter protected LanguageLevel languageLevel
@Parameter(defaultValue="Groovy Documentation") protected String header
@Parameter(defaultValue="true") protected boolean displayAuthor
@Parameter protected File overviewFile
@Parameter protected File stylesheetFile
@Parameter(defaultValue="${project.build.sourceEncoding}")
protected String stylesheetEncoding
@Parameter(defaultValue="private") protected String scope
@Parameter protected List<Link> links
@Parameter(property="skipGroovydoc",
defaultValue="false")
protected boolean skipGroovyDoc
@Parameter(defaultValue="PROJECT_ONLY") protected IncludeClasspath includeClasspath
@Parameter protected String[] defaultDocTemplates
@Parameter protected String[] defaultPackageTemplates
@Parameter protected String[] defaultClassTemplates
@Parameter protected String groovyDocToolClass
@Parameter protected String outputToolClass
@Parameter protected String fileOutputToolClass
@Parameter protected String resourceManagerClass
@Parameter protected String classpathResourceManagerClass
@Parameter protected String linkArgumentClass
@Parameter(defaultValue="false") protected boolean attachGroovyDocAnnotation
protected void doGroovyDocGeneration(org.apache.maven.shared.model.fileset.FileSet[] sourceDirectories,
List<?> classpath,
File outputDirectory)
throws ClassNotFoundException,
InvocationTargetException,
IllegalAccessException,
InstantiationException,
MalformedURLException
sourceDirectories - The source directories to generate GroovyDoc forclasspath - The classpath to use for compilationoutputDirectory - The directory to save the generated GroovyDoc inClassNotFoundException - when a class needed for GroovyDoc generation cannot be foundInstantiationException - when a class needed for GroovyDoc generation cannot be instantiatedIllegalAccessException - when a method needed for GroovyDoc generation cannot be accessedInvocationTargetException - when a reflection invocation needed for GroovyDoc generation cannot be completedMalformedURLException - when a classpath element provides a malformed URLprotected Properties setupProperties()
protected List<?> setupLinks() throws ClassNotFoundException, InvocationTargetException, IllegalAccessException, InstantiationException
ClassNotFoundException - when a class needed for setting up GroovyDoc links cannot be foundInstantiationException - when a class needed for setting up GroovyDoc links cannot be instantiatedIllegalAccessException - when a method needed for setting up GroovyDoc links cannot be accessedInvocationTargetException - when a reflection invocation needed for setting up GroovyDoc links cannot be completedprotected Object createGroovyDocTool(Class<?> groovyDocToolClass, Class<?> resourceManagerClass, Properties docProperties, Object classpathResourceManager, List<String> sourceDirectories, GroovyDocTemplateInfo groovyDocTemplateInfo, List<?> groovyDocLinks) throws InvocationTargetException, IllegalAccessException, InstantiationException
groovyDocToolClass - the GroovyDocTool classresourceManagerClass - the ResourceManager lassdocProperties - the documentation propertiesclasspathResourceManager - the ClasspathResourceManager for the GroovyDocToolsourceDirectories - the source directories for the GroovyDocToolgroovyDocTemplateInfo - the GroovyDocTemplateInfo for the GroovyDocToolgroovyDocLinks - the GroovyDoc linksInstantiationException - when a class needed for setting up GroovyDoc tool cannot be instantiatedIllegalAccessException - when a method needed for setting up GroovyDoc tool cannot be accessedInvocationTargetException - when a reflection invocation needed for setting up GroovyDoc tool cannot be completedprotected List<String> setupGroovyDocSources(org.apache.maven.shared.model.fileset.FileSet[] sourceDirectories, org.apache.maven.shared.model.fileset.util.FileSetManager fileSetManager)
sourceDirectories - the source directories to get the Groovy sources fromfileSetManager - the FileSetmanager to use to get the included filesprotected void generateGroovyDoc(File outputDirectory, Class<?> groovyDocToolClass, Class<?> outputToolClass, Object fileOutputTool, List<String> groovyDocSources, Object groovyDocTool) throws InvocationTargetException, IllegalAccessException
outputDirectory - the directory to output the GroovyDoc togroovyDocToolClass - the GroovyDocTool classoutputToolClass - the OutputTool classfileOutputTool - the FileOutputTool to use for GroovyDoc generationgroovyDocSources - the sources togroovyDocTool - the GroovyDocTool to use for GroovyDoc generationIllegalAccessException - when a method needed for GroovyDoc generation cannot be accessedInvocationTargetException - when a reflection invocation needed for GroovyDoc generation cannot be completedprotected void copyStylesheet(File outputDirectory)
outputDirectory - The output directory to copy the stylesheet toCopyright © 2011–2025. All rights reserved.