public abstract class AbstractAsciidoctorMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractAsciidoctorMojo.Format |
| Modifier and Type | Field and Description |
|---|---|
protected File |
generatedDocsDirectory
Directory where the documents will be generated
|
protected org.apache.maven.project.MavenProject |
project |
protected static String |
TEMPLATES_OUTPUT |
| Constructor and Description |
|---|
AbstractAsciidoctorMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected org.asciidoctor.Asciidoctor |
createAsciidoctor() |
void |
execute() |
abstract void |
executeMojo() |
protected void |
extractTemplatesFromJar() |
protected File |
getOutput(String filename,
AbstractAsciidoctorMojo.Format desiredExtension) |
protected org.asciidoctor.Options |
options() |
protected void |
write(io.github.robwin.markup.builder.asciidoc.AsciiDocBuilder asciiDocBuilder,
AbstractAsciidoctorMojo.Format format,
String outputFilename) |
protected static final String TEMPLATES_OUTPUT
@Parameter(defaultValue="${project}",
readonly=true,
required=true)
protected org.apache.maven.project.MavenProject project
@Parameter(property="livingdoc.output.directory",
defaultValue="${project.build.directory}/generated-docs",
required=true)
protected File generatedDocsDirectory
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionpublic abstract void executeMojo()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected void write(io.github.robwin.markup.builder.asciidoc.AsciiDocBuilder asciiDocBuilder,
AbstractAsciidoctorMojo.Format format,
String outputFilename)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected File getOutput(String filename, AbstractAsciidoctorMojo.Format desiredExtension)
protected org.asciidoctor.Asciidoctor createAsciidoctor()
protected org.asciidoctor.Options options()
protected void extractTemplatesFromJar()
Copyright © 2017–2020 Focus IT. All rights reserved.