Class AbstractDocsGeneratorMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
ch.ifocusit.livingdoc.plugin.baseMojo.AbstractAsciidoctorMojo
ch.ifocusit.livingdoc.plugin.baseMojo.AbstractDocsGeneratorMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
AbstractGlossaryMojo,DiagramMojo,GherkinMojo
- Author:
- Julien Boz
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.ifocusit.livingdoc.plugin.baseMojo.AbstractAsciidoctorMojo
AbstractAsciidoctorMojo.Format -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AbstractAsciidoctorMojo.FormatOutput format of the glossary (default html, others : adoc)protected FileFile to use for UbiquitousLanguage mapping.protected booleanIndicate that only annotated classes/fields will be used.protected Stringprotected org.apache.maven.repository.RepositorySystemFields inherited from class ch.ifocusit.livingdoc.plugin.baseMojo.AbstractAsciidoctorMojo
generatedDocsDirectory, PLANTUML_MACRO_NAME, project, TEMPLATES_OUTPUTFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendTitle(io.github.robwin.markup.builder.asciidoc.AsciiDocBuilder asciiDocBuilder) protected voidappendTitle(io.github.robwin.markup.builder.asciidoc.AsciiDocBuilder asciiDocBuilder, String title) protected io.github.robwin.markup.builder.asciidoc.AsciiDocBuilderprotected abstract Stringprotected abstract StringgetTitle()protected voidwrite(io.github.robwin.markup.builder.asciidoc.AsciiDocBuilder asciiDocBuilder) Write asciidoc to defined output in defined formatprotected voidwrite(io.github.robwin.markup.builder.asciidoc.AsciiDocBuilder asciiDocBuilder, String outputFilename) protected voidSimple write content to a file.Methods inherited from class ch.ifocusit.livingdoc.plugin.baseMojo.AbstractAsciidoctorMojo
createAsciidoctor, execute, executeMojo, extractTemplatesFromJar, getOutput, options, writeMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
repositorySystem
@Component protected org.apache.maven.repository.RepositorySystem repositorySystem -
packageRoot
@Parameter(property="livingdoc.packageRoot", defaultValue="${project.groupId}.${project.artifactId}.domain") protected String packageRoot -
format
@Parameter(property="livingdoc.output.format", defaultValue="html") protected AbstractAsciidoctorMojo.Format formatOutput format of the glossary (default html, others : adoc) -
glossaryMapping
File to use for UbiquitousLanguage mapping. -
onlyAnnotated
@Parameter(property="livingdoc.onlyAnnotated", defaultValue="false") protected boolean onlyAnnotatedIndicate that only annotated classes/fields will be used.
-
-
Constructor Details
-
AbstractDocsGeneratorMojo
public AbstractDocsGeneratorMojo()
-
-
Method Details
-
getOutputFilename
- Returns:
- the filename is defined by each mojo
-
getTitle
- Returns:
- the document title is defined by each mojo
-
write
protected void write(String newContent, File output) throws org.apache.maven.plugin.MojoExecutionException Simple write content to a file.- Parameters:
newContent- : file contentoutput- : destination file- Throws:
org.apache.maven.plugin.MojoExecutionException
-
write
protected void write(io.github.robwin.markup.builder.asciidoc.AsciiDocBuilder asciiDocBuilder) throws org.apache.maven.plugin.MojoExecutionException Write asciidoc to defined output in defined format- Parameters:
asciiDocBuilder- : asciidoc content- Throws:
org.apache.maven.plugin.MojoExecutionException
-
write
protected void write(io.github.robwin.markup.builder.asciidoc.AsciiDocBuilder asciiDocBuilder, String outputFilename) throws org.apache.maven.plugin.MojoExecutionException - Throws:
org.apache.maven.plugin.MojoExecutionException
-
createAsciiDocBuilder
protected io.github.robwin.markup.builder.asciidoc.AsciiDocBuilder createAsciiDocBuilder() -
appendTitle
protected void appendTitle(io.github.robwin.markup.builder.asciidoc.AsciiDocBuilder asciiDocBuilder) -
appendTitle
protected void appendTitle(io.github.robwin.markup.builder.asciidoc.AsciiDocBuilder asciiDocBuilder, String title)
-