-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
7e9c4ac
commit 019fb02
Showing
4 changed files
with
52 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.9.0/apache-maven-3.9.0-bin.zip | ||
distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.9.5/apache-maven-3.9.5-bin.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
src/main/kotlin/info/novatec/cbdg/plugin/CamundaBpmnDocumentationGeneratorMojo.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package info.novatec.cbdg.plugin | ||
|
||
import info.novatec.docu.generator.DocuGenerator | ||
import org.apache.maven.plugin.AbstractMojo | ||
import org.apache.maven.plugins.annotations.Mojo | ||
import org.apache.maven.plugins.annotations.Parameter | ||
import java.io.File | ||
|
||
/** | ||
* Mojo - Class for cbdg-plugin. Calls by Maven-command 'mvn cbdg:generate'. | ||
*/ | ||
@Mojo(name = "generate") | ||
class CamundaBpmnDocumentationGeneratorMojo : AbstractMojo() { | ||
/** | ||
* Default usage is the templates/default.ftl from Jar-File. | ||
* To use it, it will be created in Build-Dir of the target project the empty file default.ftl | ||
* and fill it with the stream of templates/default.ftl from Jar-File | ||
*/ | ||
@Parameter(property = "templateFile", defaultValue = "\${project.build.directory}/classes/templates/default.ftl") | ||
lateinit var templateFile: File | ||
|
||
/** | ||
* Directory with bpmn-files. Default is '{project.basedir}/src/main/resources/bpmn' | ||
*/ | ||
@Parameter(property = "camundaBpmnDir", defaultValue = "\${project.basedir}/src/main/resources/bpmn") | ||
lateinit var camundaBpmnDir: File | ||
|
||
/** | ||
* Target-directory fot generated content. Default is '{project.build.directory}/cbdg/html' | ||
*/ | ||
@Parameter(property = "resultOutputDir", defaultValue = "\${project.build.directory}/cbdg/html") | ||
lateinit var resultOutputDir: File | ||
|
||
/** | ||
* Directory with the images of bpmn-files. Default is '{project.basedir}/src/main/resources/images' | ||
*/ | ||
@Parameter(property = "bpmnDiagramImageDir", defaultValue = "\${project.basedir}/src/main/resources/images") | ||
var bpmnDiagramImageDir: File? = null | ||
|
||
override fun execute() { | ||
DocuGenerator().parseAndGenerate( | ||
templateFile, | ||
camundaBpmnDir, | ||
resultOutputDir, | ||
bpmnDiagramImageDir | ||
) | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.