@groovy.transform.CompileStatic class AsciidoctorEditorConfigGenerator extends DefaultTask
Generates .asciidoctorconfig file.
When the file is generated attributes are applied in the following order.
| Fields inherited from class | Fields |
|---|---|
class DefaultTask |
TASK_NAME, TASK_DESCRIPTION, TASK_GROUP, TASK_TYPE, TASK_DEPENDS_ON, TASK_OVERWRITE, TASK_ACTION, TASK_CONSTRUCTOR_ARGS |
| Type | Name and description |
|---|---|
Map<String, Object> |
attributes |
File |
destinationDir |
| Constructor and description |
|---|
AsciidoctorEditorConfigGenerator
() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
additionalAttributes(Object attrs)Add an additional attribute provider. |
|
void |
attributes(Map<String, Object> attrs)Add more attributes to the existing set |
|
void |
exec() |
|
List<Provider<Map<String, String>>> |
getAdditionalAttributeProviders()Returns list of attribute providers. |
|
List<Provider<File>> |
getAdditionalFileProviders()Returns list of file providers. |
|
Map<String, String> |
getAttributes()Returns the set of attributes after values have been converted to strings. |
|
File |
getDestinationDir()Destination directory. |
|
Provider<File> |
getOutputFile()Location of generated .asciidoctorconfig file. |
|
void |
setAttributes(Map<String, Object> attrs)Replace existing attributes with a new set. |
|
void |
setDestinationDir(Object dir)Sets destination directory. |
Add an additional attribute provider.
A provider can be a file of something that implements org.asciidoctor.gradle.base.AsciidoctorAttributeProvider (such as
an asciidoctorj or asciidoctorjs extension).
attrs - Anything convertible to a file using project.file or that implements
org.asciidoctor.gradle.base.AsciidoctorAttributeProvider.Add more attributes to the existing set
attrs - Additional attributes.Returns list of attribute providers. THese providers will return attributes as key-value pairs.
Returns list of file providers. Content of these files will simply be appended to the genrated content.
Returns the set of attributes after values have been converted to strings.
Destination directory. Defaults to the project directory.
Location of generated .asciidoctorconfig file.
Replace existing attributes with a new set.
attrs - Replacement attributesSets destination directory.
dir - Anything convertible to a directory using project.file.Copyright © 2013-2024 the original author or authors. All rights reserved.