@SuppressWarnings(value: [MethodCount, Instanceof]) @groovy.transform.CompileStatic @CacheableTask class AsciidoctorTask extends AbstractAsciidoctorTask
Standard generic task for converting Asciidoctor documents.
For convention and cmopatibility with older releases of this pugin, the default source directory
is "src/docs/asciidoc"
if the task is named aciidoctor
. For all other instances
of this task type the default source directory is "src/docs/${task.name.capitalize()
"}.
In a similar fasion the default output directory is either "${buildDir
/asciidoc"} or
"${buildDir
/asciidoc${task.name.capitalize()}"}.
Fields inherited from class | Fields |
---|---|
class AbstractAsciidoctorTask |
CLASSPATH, ERROR, FATAL, INFO, IN_PROCESS, JAVA_EXEC, OUT_OF_PROCESS, WARN |
Constructor and description |
---|
AsciidoctorTask
(WorkerExecutor we) |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
exec() |
|
PatternSet |
getDefaultSecondarySourceDocumentPattern() The default pattern set for secondary sources baced upon the configured backends. |
|
void |
outputOptions(groovy.lang.Closure cfg) Configures output options for this task. |
|
void |
outputOptions(Action<org.asciidoctor.gradle.base.OutputOptions> cfg) Configures output options for this task. |
Methods inherited from class | Name |
---|---|
class AbstractAsciidoctorTask |
attributes, configurations, configurations, exec, forkOptions, forkOptions, getAttributeProviders, getAttributes, getConfigurations, getFailureLevel, getOptions, getReportableConfigurations, options, setAttributes, setConfigurations, setExecutionMode, setExecutionMode, setFailureLevel, setFailureLevel, setInProcess, setInProcess, setOptions, withGemJar, withGemJar, withGemPath |
The default pattern set for secondary sources baced upon the configured backends.
If the backends contain docbook
then *docbook*.xml
is added.
If the backend contain html5
then *docbook*.html
is added.
Configures output options for this task.
cfg
- Closure which will delegate to a org.asciidoctor.gradle.base.OutputOptions instance.Configures output options for this task.
cfg
- Action which will be passed an instances of org.asciidoctor.gradle.base.OutputOptions
to configure.Copyright © 2013-2024 the original author or authors. All rights reserved.