Class AbstractAsciidoctorMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
ch.ifocusit.livingdoc.plugin.baseMojo.AbstractAsciidoctorMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
AbstractDocsGeneratorMojo,PublishMojo
public abstract class AbstractAsciidoctorMojo
extends org.apache.maven.plugin.AbstractMojo
- Author:
- Julien Boz
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FileDirectory where the documents will be generatedprotected static final Stringprotected org.apache.maven.project.MavenProjectprotected static final StringFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.asciidoctor.Asciidoctorvoidexecute()abstract voidprotected voidprotected FilegetOutput(String filename, AbstractAsciidoctorMojo.Format desiredExtension) protected org.asciidoctor.Optionsoptions()protected voidwrite(io.github.robwin.markup.builder.asciidoc.AsciiDocBuilder asciiDocBuilder, AbstractAsciidoctorMojo.Format format, String outputFilename) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
TEMPLATES_OUTPUT
- See Also:
-
PLANTUML_MACRO_NAME
- See Also:
-
project
@Parameter(defaultValue="${project}", readonly=true, required=true) protected org.apache.maven.project.MavenProject project -
generatedDocsDirectory
@Parameter(property="livingdoc.output.directory", defaultValue="${project.build.directory}/generated-docs", required=true) protected File generatedDocsDirectoryDirectory where the documents will be generated
-
-
Constructor Details
-
AbstractAsciidoctorMojo
public AbstractAsciidoctorMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
executeMojo
public abstract void executeMojo() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
write
protected void write(io.github.robwin.markup.builder.asciidoc.AsciiDocBuilder asciiDocBuilder, AbstractAsciidoctorMojo.Format format, String outputFilename) throws org.apache.maven.plugin.MojoExecutionException - Throws:
org.apache.maven.plugin.MojoExecutionException
-
getOutput
-
createAsciidoctor
public org.asciidoctor.Asciidoctor createAsciidoctor() -
options
protected org.asciidoctor.Options options() -
extractTemplatesFromJar
protected void extractTemplatesFromJar()
-