asciidocDiagramImageFormat
Description
With the help of this configuration option it is possible to change the image format which is used by the asciidoc plantuml extension if the enableAsciidocWrapper configuration option is enabled. Without enableAsciidocWrapper enabled this configuration option is without any use.
Example
In this example the default image format which is used by the plantuml extension of asciidoc for the rendering is set to "jpg":
<plugin>
<artifactId>@project.artifactId@</artifactId>
<groupId>@project.groupId@</groupId>
<version>@project.version@</version>
<executions>
<execution>
<id>generate-simple-diagram</id>
<goals>
<goal>generateSequenceDiagram</goal>
</goals>
<phase>generate-test-sources</phase>
<configuration>
<outputFilename>testsequencediagram1.txt</outputFilename>
<startClass>de.elnarion.maven.plugin.plantuml.generator.test.domain.ChildA</startClass>
<startMethod>doSomethingSpecial</startMethod>
<asciidocDiagramImageFormat>jpg</asciidocDiagramImageFormat>
<enableAsciidocWrapper>true</enableAsciidocWrapper>
</configuration>
</execution>
</executions>
</plugin>
which produces this PlantUML diagram text:
[plantuml,testsequencediagram1.txt.jpg,jpg]
----
@startuml
participant ChildA
participant ChildB
participant BaseAbstractClass
activate ChildA
ChildA -> ChildB : getUtil
activate ChildB
ChildB --> ChildA
deactivate ChildB
ChildA -> BaseAbstractClass : doSomethingWithReturnValue
activate BaseAbstractClass
BaseAbstractClass --> ChildA
deactivate BaseAbstractClass
ChildA -> BaseAbstractClass : doSomethingWithParameter
activate BaseAbstractClass
BaseAbstractClass --> ChildA
deactivate BaseAbstractClass
deactivate ChildA
@enduml
----