@groovy.transform.CompileStatic @groovy.util.logging.Slf4j class DefaultAsciidoctorOutputOptions extends Object implements AsciidoctorTaskOutputOptions
Implementation of output options for Asciidoctor tasks
| Modifiers | Name | Description |
|---|---|---|
class |
DefaultAsciidoctorOutputOptions.1 |
| Constructor and description |
|---|
DefaultAsciidoctorOutputOptions
(org.ysb33r.grolifant.api.core.ProjectOperations po, String taskName, AsciidoctorTaskFileOperations atfo) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
Set<String> |
backends()The current set of configured Asciidoctor backends. |
|
void |
configureOutputOptions(groovy.lang.Closure cfg)Configures output options for this task. |
|
void |
configureOutputOptions(Action<OutputOptions> cfg)Configures output options for this task. |
|
void |
copyAllResources()Copies all resources to the output directory. |
|
void |
copyNoResources()Do not copy any resources to the output directory. |
|
void |
copyResourcesByBackend(String backendName, File sourceDir, File outputDir, Optional<String> includeLang)Copy resources for a backend. |
|
void |
copyResourcesOnlyIf(String[] backendNames)Copy resources to the output directory only if the backend names matches any of the specified names. |
|
Set<File> |
getBackendOutputDirectories()Returns a list of all output directories by backend |
|
Optional<List<String>> |
getCopyResourcesForBackends()List of backends for which to copy resources. |
|
File |
getOutputDirForBackend(String backendName)Get the output directory for a specific backend. |
|
File |
getOutputDirForBackend(String backendName, String language)Get the output directory for a specific backend. |
|
OutputOptions |
getOutputOptions()Access to the underlying OutputOptions. |
The current set of configured Asciidoctor backends.
Configures output options for this task.
cfg - Closure which will delegate to a OutputOptions instance.Configures output options for this task.
cfg - Action which will be passed an instances of OutputOptions
to configure. Copies all resources to the output directory.
Some backends (such as html5) require all resources to be copied to the output directory.
This is the default behaviour for this task.
Do not copy any resources to the output directory.
Some backends (such as pdf) process all resources in place.
Copy resources for a backend.
backendName - Name of backend for which resources are copiedsourceDir - Source directory of resourcesoutputDir - Final output directory.includeLang - If set also copy resources for this specified languageCopy resources to the output directory only if the backend names matches any of the specified names.
backendNames - List of names for which resources should be copied.Returns a list of all output directories by backend
List of backends for which to copy resources.
null.Get the output directory for a specific backend.
backendName - Name of backendGet the output directory for a specific backend.
backendName - Name of backendlanguage - Language for which sources are being generated.Access to the underlying OutputOptions.
Copyright © 2013-2024 the original author or authors. All rights reserved.