public abstract class AbstractGroovydocMojo extends AbstractGroovySourcesMojo
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
displayAuthor
Whether to display the author in the generated Groovydoc.
|
protected java.lang.String |
docTitle
The page title.
|
protected java.lang.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 boolean |
groovydocJavaSources
Whether to include Java sources in groovydoc generation.
|
protected java.io.File |
groovydocOutputDirectory
The location for the generated API docs.
|
protected java.lang.String |
header
The page header.
|
protected java.util.List<Link> |
links
Links to include in the generated groovydoc (key is link href, value is
comma-separated packages to use that link).
|
protected java.io.File |
overviewFile
The HTML file to be used for overview documentation.
|
protected java.lang.String |
scope
The scope to generate Groovydoc for.
|
protected java.lang.String |
stylesheetEncoding
The encoding of stylesheetFile.
|
protected java.io.File |
stylesheetFile
The stylesheet file (absolute path) to copy to output directory (will
overwrite default stylesheet.css).
|
protected java.io.File |
testGroovydocOutputDirectory
The location for the generated test API docs.
|
protected java.lang.String |
windowTitle
The window title.
|
MAIN, sources, TEST, testSourcesclassWrangler, GROOVY_1_5_0, GROOVY_SOURCES_PATTERN, JAVA_1_7, JAVA_SOURCES_PATTERN, minGroovyVersion, mojoExecution, pluginArtifacts, project, session, skipTests| Constructor and Description |
|---|
AbstractGroovydocMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
copyStylesheet(java.io.File outputDirectory)
Copies the stylesheet to the specified output directory.
|
protected java.lang.Object |
createGroovyDocTool(java.lang.Class groovyDocToolClass,
java.lang.Class resourceManagerClass,
java.util.Properties docProperties,
java.lang.Object classpathResourceManager,
java.util.List<java.lang.String> sourceDirectories,
GroovyDocTemplateInfo groovyDocTemplateInfo,
java.util.List groovydocLinks)
Instantiates a new GroovyDocTool.
|
protected void |
doGroovydocGeneration(org.apache.maven.shared.model.fileset.FileSet[] sourceDirectories,
java.util.List classpath,
java.io.File outputDirectory)
Generates the Groovydoc for the specified sources.
|
protected void |
generateGroovydoc(java.io.File outputDirectory,
java.lang.Class groovyDocToolClass,
java.lang.Class outputToolClass,
java.lang.Object fileOutputTool,
java.util.List<java.lang.String> groovydocSources,
java.lang.Object groovyDocTool)
Performs the Groovydoc generation.
|
protected java.util.List<java.lang.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 java.util.List |
setupLinks()
Sets up the Groovydoc links.
|
protected java.util.Properties |
setupProperties()
Sets up the documentation properties.
|
getFiles, getFilesets, getSourceRoots, getSourceRoots, getSources, getSources, getTestSourceRoots, getTestSourceRoots, getTestSources, getTestSources, setSources, setTestSourcesgetJavaVersion, getJavaVersionString, groovyVersionSupportsAction, isJavaSupportIndy, logPluginClasspathgetLog, getPluginContext, setLog, setPluginContextprotected 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
protected java.io.File groovydocOutputDirectory
protected java.io.File testGroovydocOutputDirectory
protected java.lang.String windowTitle
protected java.lang.String docTitle
protected java.lang.String footer
protected java.lang.String header
protected boolean displayAuthor
protected java.io.File overviewFile
protected java.io.File stylesheetFile
protected java.lang.String stylesheetEncoding
protected java.lang.String scope
protected java.util.List<Link> links
protected boolean groovydocJavaSources
protected void doGroovydocGeneration(org.apache.maven.shared.model.fileset.FileSet[] sourceDirectories,
java.util.List classpath,
java.io.File outputDirectory)
throws java.lang.ClassNotFoundException,
java.lang.reflect.InvocationTargetException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.net.MalformedURLException
sourceDirectories - The source directories to generate groovydoc forclasspath - The classpath to use for compilationoutputDirectory - The directory to save the generated groovydoc injava.lang.ClassNotFoundException - when a class needed for groovydoc generation cannot be foundjava.lang.InstantiationException - when a class needed for groovydoc generation cannot be instantiatedjava.lang.IllegalAccessException - when a method needed for groovydoc generation cannot be accessedjava.lang.reflect.InvocationTargetException - when a reflection invocation needed for groovydoc generation cannot be completedjava.net.MalformedURLException - when a classpath element provides a malformed URLprotected java.util.Properties setupProperties()
protected java.util.List setupLinks()
throws java.lang.ClassNotFoundException,
java.lang.reflect.InvocationTargetException,
java.lang.IllegalAccessException,
java.lang.InstantiationException
java.lang.ClassNotFoundException - when a class needed for setting up Groovydoc links cannot be foundjava.lang.InstantiationException - when a class needed for setting up Groovydoc links cannot be instantiatedjava.lang.IllegalAccessException - when a method needed for setting up Groovydoc links cannot be accessedjava.lang.reflect.InvocationTargetException - when a reflection invocation needed for setting up Groovydoc links cannot be completedprotected java.lang.Object createGroovyDocTool(java.lang.Class groovyDocToolClass,
java.lang.Class resourceManagerClass,
java.util.Properties docProperties,
java.lang.Object classpathResourceManager,
java.util.List<java.lang.String> sourceDirectories,
GroovyDocTemplateInfo groovyDocTemplateInfo,
java.util.List groovydocLinks)
throws java.lang.reflect.InvocationTargetException,
java.lang.IllegalAccessException,
java.lang.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 linksjava.lang.InstantiationException - when a class needed for setting up Groovydoc tool cannot be instantiatedjava.lang.IllegalAccessException - when a method needed for setting up Groovydoc tool cannot be accessedjava.lang.reflect.InvocationTargetException - when a reflection invocation needed for setting up Groovydoc tool cannot be completedprotected java.util.List<java.lang.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(java.io.File outputDirectory,
java.lang.Class groovyDocToolClass,
java.lang.Class outputToolClass,
java.lang.Object fileOutputTool,
java.util.List<java.lang.String> groovydocSources,
java.lang.Object groovyDocTool)
throws java.lang.reflect.InvocationTargetException,
java.lang.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 generationjava.lang.IllegalAccessException - when a method needed for Groovydoc generation cannot be accessedjava.lang.reflect.InvocationTargetException - when a reflection invocation needed for Groovydoc generation cannot be completedprotected void copyStylesheet(java.io.File outputDirectory)
outputDirectory - The output directory to copy the stylesheet to