Class GroovyDocWriter
java.lang.Object
org.codehaus.groovy.tools.groovydoc.GroovyDocWriter
Write GroovyDoc resources to destination.
-
Constructor Summary
ConstructorsConstructorDescriptionGroovyDocWriter(GroovyDocTool tool, OutputTool output, GroovyDocTemplateEngine templateEngine, Properties properties) Deprecated.GroovyDocWriter(OutputTool output, GroovyDocTemplateEngine templateEngine, Properties properties) Creates a writer with no source-path information (resource files will not be copied).GroovyDocWriter(OutputTool output, GroovyDocTemplateEngine templateEngine, Properties properties, String[] sourcepaths) Creates a writer with source-path information used to locate and mirror resource directories. -
Method Summary
Modifier and TypeMethodDescriptionvoidwriteClasses(GroovyRootDoc rootDoc, String destdir) Writes HTML for every class in the root doc to the destination directory.voidwriteClassToOutput(GroovyClassDoc classDoc, String destdir) Writes the HTML page for a single class doc if its visibility matches the configured scope.voidwritePackages(GroovyRootDoc rootDoc, String destdir) Writes package-level HTML pages and thepackage-listfile to the destination directory.voidwritePackageToOutput(GroovyPackageDoc packageDoc, String destdir) Writes all package-level template output for a single package doc to the destination directory.voidwriteRoot(GroovyRootDoc rootDoc, String destdir) Creates the output area and writes the root-level documentation pages.voidwriteRootDocToOutput(GroovyRootDoc rootDoc, String destdir) Writes each root-level template to the destination directory, skipping disabled pages and copying binary resources verbatim.
-
Constructor Details
-
GroovyDocWriter
@Deprecated public GroovyDocWriter(GroovyDocTool tool, OutputTool output, GroovyDocTemplateEngine templateEngine, Properties properties) Deprecated. -
GroovyDocWriter
public GroovyDocWriter(OutputTool output, GroovyDocTemplateEngine templateEngine, Properties properties) Creates a writer with no source-path information (resource files will not be copied). -
GroovyDocWriter
public GroovyDocWriter(OutputTool output, GroovyDocTemplateEngine templateEngine, Properties properties, String[] sourcepaths) Creates a writer with source-path information used to locate and mirror resource directories.- Since:
- 6.0.0
-
-
Method Details
-
writeClasses
Writes HTML for every class in the root doc to the destination directory.- Throws:
Exception
-
writeClassToOutput
Writes the HTML page for a single class doc if its visibility matches the configured scope.- Throws:
Exception
-
writePackages
Writes package-level HTML pages and thepackage-listfile to the destination directory.- Throws:
Exception
-
writePackageToOutput
Writes all package-level template output for a single package doc to the destination directory.- Throws:
Exception
-
writeRoot
Creates the output area and writes the root-level documentation pages.- Throws:
Exception
-
writeRootDocToOutput
Writes each root-level template to the destination directory, skipping disabled pages and copying binary resources verbatim.- Throws:
Exception
-
GroovyDocWriter(OutputTool, GroovyDocTemplateEngine, Properties)