Package org.codehaus.groovy.ant
Class Groovydoc
- java.lang.Object
- 
- org.apache.tools.ant.ProjectComponent
- 
- org.apache.tools.ant.Task
- 
- org.codehaus.groovy.ant.Groovydoc
 
 
 
- 
- All Implemented Interfaces:
- java.lang.Cloneable
 
 public class Groovydoc extends org.apache.tools.ant.TaskAccess to the GroovyDoc tool from Ant.
- 
- 
Constructor SummaryConstructors Constructor Description Groovydoc()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description LinkArgumentcreateLink()Create link to Javadoc/GroovyDoc output at the given URL.voidexecute()protected java.lang.String[]getClassTemplates()Creates and returns an array of class template classpath entries.protected java.lang.String[]getDocTemplates()Creates and returns an array of doc template classpath entries.protected java.lang.String[]getPackageTemplates()Creates and returns an array of package template classpath entries.voidsetAccess(java.lang.String access)Indicates the access mode or scope of interest: one of public, protected, package, or private.voidsetAuthor(boolean author)If set to false, author will not be displayed.voidsetCharset(java.lang.String charset)Specifies the charset to be used in the templates, i.e. the value output within: <meta http-equiv="Content-Type" content="text/html; charset=charset">.voidsetDestdir(java.io.File dir)Set the directory where the Groovydoc output will be generated.voidsetDoctitle(java.lang.String htmlTitle)Set the title for the overview page.voidsetExtensions(java.lang.String extensions)A colon-separated list of filename extensions to look for when searching for files to process in a given directory.voidsetFileEncoding(java.lang.String fileEncoding)Specifies the file encoding to be used for generated files.voidsetFooter(java.lang.String footer)Set the footer to place at the bottom of each generated html page.voidsetHeader(java.lang.String header)Specifies the header text to be placed at the top of each output file.voidsetIncludeMainForScripts(boolean includeMainForScripts)If set to false, 'public static void main' method will not be displayed.voidsetNoTimestamp(boolean noTimestamp)If set to true, hidden timestamp will not appear within generated HTML.voidsetNoVersionStamp(boolean noVersionStamp)If set to true, hidden version stamp will not appear within generated HTML.voidsetOverview(java.io.File file)Specify the file containing the overview to be included in the generated documentation.voidsetPackage(boolean b)Indicate whether only package, protected and public classes and members are to be included in the scope processed.voidsetPackagenames(java.lang.String packages)Set the package names to be processed.voidsetPrivate(boolean b)Indicate whether all classes and members are to be included in the scope processed.voidsetProcessScripts(boolean processScripts)If set to false, Scripts will not be processed.voidsetProtected(boolean b)Indicate whether only protected and public classes and members are to be included in the scope processed.voidsetPublic(boolean b)Indicate whether only public classes and members are to be included in the scope processed.voidsetSourcepath(org.apache.tools.ant.types.Path src)Specify where to find source filevoidsetStyleSheetFile(java.io.File styleSheetFile)Specifies a stylesheet file to use.voidsetUse(boolean b)voidsetWindowtitle(java.lang.String title)Set the title to be placed in the HTML <title> tag of the generated documentation.- 
Methods inherited from class org.apache.tools.ant.TaskbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
- 
 
- 
- 
- 
Method Detail- 
setSourcepathpublic void setSourcepath(org.apache.tools.ant.types.Path src) Specify where to find source file- Parameters:
- src- a Path instance containing the various source directories.
 
 - 
setDestdirpublic void setDestdir(java.io.File dir) Set the directory where the Groovydoc output will be generated.- Parameters:
- dir- the destination directory.
 
 - 
setAuthorpublic void setAuthor(boolean author) If set to false, author will not be displayed. Currently not used.- Parameters:
- author- new value
 
 - 
setNoTimestamppublic void setNoTimestamp(boolean noTimestamp) If set to true, hidden timestamp will not appear within generated HTML.- Parameters:
- noTimestamp- new value
 
 - 
setNoVersionStamppublic void setNoVersionStamp(boolean noVersionStamp) If set to true, hidden version stamp will not appear within generated HTML.- Parameters:
- noVersionStamp- new value
 
 - 
setProcessScriptspublic void setProcessScripts(boolean processScripts) If set to false, Scripts will not be processed. Defaults to true.- Parameters:
- processScripts- new value
 
 - 
setIncludeMainForScriptspublic void setIncludeMainForScripts(boolean includeMainForScripts) If set to false, 'public static void main' method will not be displayed. Defaults to true. Ignored when not processing Scripts.- Parameters:
- includeMainForScripts- new value
 
 - 
setExtensionspublic void setExtensions(java.lang.String extensions) A colon-separated list of filename extensions to look for when searching for files to process in a given directory. Default value:.java:.groovy:.gv:.gvy:.gsh- Parameters:
- extensions- new value
 
 - 
setPackagenamespublic void setPackagenames(java.lang.String packages) Set the package names to be processed.- Parameters:
- packages- a comma separated list of packages specs (may be wildcarded).
 
 - 
setUsepublic void setUse(boolean b) 
 - 
setWindowtitlepublic void setWindowtitle(java.lang.String title) Set the title to be placed in the HTML <title> tag of the generated documentation.- Parameters:
- title- the window title to use.
 
 - 
setDoctitlepublic void setDoctitle(java.lang.String htmlTitle) Set the title for the overview page.- Parameters:
- htmlTitle- the html to use for the title.
 
 - 
setOverviewpublic void setOverview(java.io.File file) Specify the file containing the overview to be included in the generated documentation.- Parameters:
- file- the overview file
 
 - 
setAccesspublic void setAccess(java.lang.String access) Indicates the access mode or scope of interest: one of public, protected, package, or private. Package scoped access is ignored for fields of Groovy classes where they correspond to properties.- Parameters:
- access- one of public, protected, package, or private
 
 - 
setPrivatepublic void setPrivate(boolean b) Indicate whether all classes and members are to be included in the scope processed.- Parameters:
- b- true if scope is to be private level.
 
 - 
setPublicpublic void setPublic(boolean b) Indicate whether only public classes and members are to be included in the scope processed.- Parameters:
- b- true if scope only includes public level classes and members
 
 - 
setProtectedpublic void setProtected(boolean b) Indicate whether only protected and public classes and members are to be included in the scope processed.- Parameters:
- b- true if scope includes protected level classes and members
 
 - 
setPackagepublic void setPackage(boolean b) Indicate whether only package, protected and public classes and members are to be included in the scope processed. Package scoped access is ignored for fields of Groovy classes where they correspond to properties.- Parameters:
- b- true if scope includes package level classes and members
 
 - 
setFooterpublic void setFooter(java.lang.String footer) Set the footer to place at the bottom of each generated html page.- Parameters:
- footer- the footer value
 
 - 
setHeaderpublic void setHeader(java.lang.String header) Specifies the header text to be placed at the top of each output file. The header will be placed to the right of the upper navigation bar. It may contain HTML tags and white space, though if it does, it must be enclosed in quotes. Any internal quotation marks within the header may have to be escaped.- Parameters:
- header- the header value
 
 - 
setCharsetpublic void setCharset(java.lang.String charset) Specifies the charset to be used in the templates, i.e. the value output within: <meta http-equiv="Content-Type" content="text/html; charset=charset">.- Parameters:
- charset- the charset value
 
 - 
setFileEncodingpublic void setFileEncoding(java.lang.String fileEncoding) Specifies the file encoding to be used for generated files. If fileEncoding is missing, the charset encoding will be used for writing the files. If fileEncoding and charset are missing, the file encoding will default to Charset.defaultCharset().- Parameters:
- fileEncoding- the file encoding
 
 - 
setStyleSheetFilepublic void setStyleSheetFile(java.io.File styleSheetFile) Specifies a stylesheet file to use. If not specified, a default one will be generated for you.- Parameters:
- styleSheetFile- the css stylesheet file to use
 
 - 
executepublic void execute() throws org.apache.tools.ant.BuildException- Overrides:
- executein class- org.apache.tools.ant.Task
- Throws:
- org.apache.tools.ant.BuildException
 
 - 
createLinkpublic LinkArgument createLink() Create link to Javadoc/GroovyDoc output at the given URL.- Returns:
- link argument to configure
 
 - 
getPackageTemplatesprotected java.lang.String[] getPackageTemplates() Creates and returns an array of package template classpath entries.This method is meant to be overridden by custom GroovyDoc implementations, using custom package templates. - Returns:
- an array of package templates, whereas each entry is resolved as classpath entry, defaults to
 GroovyDocTemplateInfo.DEFAULT_PACKAGE_TEMPLATES.
 
 - 
getDocTemplatesprotected java.lang.String[] getDocTemplates() Creates and returns an array of doc template classpath entries.This method is meant to be overridden by custom GroovyDoc implementations, using custom doc templates. - Returns:
- an array of doc templates, whereas each entry is resolved as classpath entry, defaults to
 GroovyDocTemplateInfo.DEFAULT_DOC_TEMPLATES.
 
 - 
getClassTemplatesprotected java.lang.String[] getClassTemplates() Creates and returns an array of class template classpath entries.This method is meant to be overridden by custom GroovyDoc implementations, using custom class templates. - Returns:
- an array of class templates, whereas each entry is resolved as classpath entry, defaults to
 GroovyDocTemplateInfo.DEFAULT_CLASS_TEMPLATES.
 
 
- 
 
-