@groovy.transform.CompileStatic @SuppressWarnings(value: MethodCount) class AbstractAsciidoctorTask extends org.ysb33r.grolifant.api.core.runnable.AbstractJvmModelExecTask<AsciidoctorJvmExecSpec, AsciidoctorWorkerParameters> implements org.asciidoctor.gradle.base.AsciidoctorTaskMethods
Base class for all AsciidoctorJ tasks.
Modifiers | Name | Description |
---|---|---|
static org.ysb33r.grolifant.api.core.jvm.ExecutionMode |
CLASSPATH |
|
static org.asciidoctor.gradle.base.log.Severity |
ERROR |
|
static org.asciidoctor.gradle.base.log.Severity |
FATAL |
|
static org.asciidoctor.gradle.base.log.Severity |
INFO |
|
static org.ysb33r.grolifant.api.core.jvm.ExecutionMode |
IN_PROCESS |
|
static org.ysb33r.grolifant.api.core.jvm.ExecutionMode |
JAVA_EXEC |
|
static org.ysb33r.grolifant.api.core.jvm.ExecutionMode |
OUT_OF_PROCESS |
|
static org.asciidoctor.gradle.base.log.Severity |
WARN |
Type | Name and description |
---|---|
Map<String, Object> |
attributes |
FileCollection |
configurations |
org.asciidoctor.gradle.base.log.Severity |
failureLevel |
Map<String, Object> |
options |
boolean |
parallelMode |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
attributes(Map m) Add additional asciidoctor options |
|
void |
configurations(Iterable<Object> configs) Add additional configurations. |
|
void |
configurations(Object[] configs) Add additional configurations. |
|
void |
exec() |
|
void |
forkOptions(groovy.lang.Closure configurator) Set fork options for JAVA_EXEC and OUT_OF_PROCESS modes. |
|
void |
forkOptions(Action<org.ysb33r.grolifant.api.core.jvm.JavaForkOptionsWithEnvProvider> configurator) Set fork options for JAVA_EXEC and OUT_OF_PROCESS modes. |
|
List<org.asciidoctor.gradle.base.AsciidoctorAttributeProvider> |
getAttributeProviders() Additional providers of attributes. |
|
Map<String, Object> |
getAttributes() Returns all of the Asciidoctor options. |
|
FileCollection |
getConfigurations() Returns all of the specified configurations as a collections of files. |
|
org.asciidoctor.gradle.base.log.Severity |
getFailureLevel() Get the minimum logging level that will fail the task. |
|
Map<String, Object> |
getOptions() Returns all of the Asciidoctor options. |
|
Set<Configuration> |
getReportableConfigurations() Configurations for which dependencies should be reported. |
|
void |
options(Map m) Add additional asciidoctor options |
|
void |
setAttributes(Map m) Apply a new set of Asciidoctor options, clearing any options previously set. |
|
void |
setConfigurations(Iterable<Object> configs) Override any existing configurations except the ones available via the asciidoctorj task extension. |
|
void |
setExecutionMode(org.ysb33r.grolifant.api.core.jvm.ExecutionMode em) Sets the execution mode. |
|
void |
setExecutionMode(String s) |
|
void |
setFailureLevel(org.asciidoctor.gradle.base.log.Severity severity) Set the minimum logging level that will fail the task. |
|
void |
setFailureLevel(String severity) Set the minimum logging level that will fail the task. |
|
void |
setInProcess(org.asciidoctor.gradle.base.process.ProcessMode mode) Set how AsciidoctorJ should be run. |
|
void |
setInProcess(String mode) Set how AsciidoctorJ should be run. |
|
void |
setOptions(Map m) Apply a new set of Asciidoctor options, clearing any options previously set. |
|
void |
withGemJar(TaskProvider<Jar> gemJar) Adds a Jar of GEMs to the classpath. |
|
void |
withGemJar(String taskName) Adds a Jar of GEMs to the classpath. |
|
void |
withGemPath(Provider<File> gemPath, String builtBy) Adds a directory to the classpath. |
Add additional asciidoctor options
If set here these options will be used in addition to any global Asciidoctor options.
This is equivalent of using asciidoctorj.attributes
.
m
- Map with new optionsAdd additional configurations.
configs
- Instances of Configuration or anything convertible to a string than can be used
as a name of a runConfiguration.Add additional configurations.
configs
- Instances of Configuration or anything convertible to a string than can be used
as a name of a runConfiguration.Set fork options for JAVA_EXEC and OUT_OF_PROCESS modes.
These options are ignored if inProcess ==
IN_PROCESS.
configurator
- Closure that configures a JavaForkOptions instance.Set fork options for JAVA_EXEC and OUT_OF_PROCESS modes.
These options are ignored if inProcess ==
IN_PROCESS.
configurator
- Action that configures a JavaForkOptions instance.Additional providers of attributes. NOTE: Attributes added via providers do no change the up-to-date status of the task. Providers are therefore useful to add attributes such as build time.
Returns all of the Asciidoctor options.
This is equivalent of using asciidoctorj.getAttributes
Returns all of the specified configurations as a collections of files. If any docExtensions are dependencies then they will be included here too.
Get the minimum logging level that will fail the task. Valid options are FATAL, ERROR or WARN or INFO. The default mode is FATAL.
Returns all of the Asciidoctor options.
This is equivalent of using asciidoctorj.getOptions
Configurations for which dependencies should be reported.
null
.Add additional asciidoctor options
If set here these options will be used in addition to any global Asciidoctor options.
This is equivalent of using asciidoctorj.options
.
m
- Map with new optionsApply a new set of Asciidoctor options, clearing any options previously set.
If set here all global Asciidoctor options are ignored within this task.
This is equivalent of using asciidoctorj.setAttributes
.
m
- Map with new optionsOverride any existing configurations except the ones available via the asciidoctorj
task extension.
Sets the execution mode.
This allows for JVM tasks to be executed either on a worker queue inside the JVM using an isolated classpath,
ouside the JVM in a separate process, OR using a classic javaexec
.
If nothing is set, the default is org.ysb33r.grolifant.api.core.jvm.ExecutionMode#JAVA_EXEC.
em
- Execution mode.Set the minimum logging level that will fail the task.
Set the minimum logging level that will fail the task.
Set how AsciidoctorJ should be run.
mode
- IN_PROCESS, OUT_OF_PROCESS or JAVA_EXEC.Set how AsciidoctorJ should be run.
mode
- Case-insensitive string from of IN_PROCESS, OUT_OF_PROCESS or JAVA_EXEC.Apply a new set of Asciidoctor options, clearing any options previously set.
If set here all global Asciidoctor options are ignored within this task.
This is equivalent of using asciidoctorj.setOptions
.
m
- Map with new optionsAdds a Jar of GEMs to the classpath.
gemJar
- Provider to a Jar task which contain GEMsAdds a Jar of GEMs to the classpath.
gemJar
- name of a Jar task which contain GEMs.