Groovy - including plantuml in a script

0 votes
asked Mar 15, 2018 in Question / help by Raul

Hi chaps, I found the code below on this website, however, I don't know what is the parameter for call below, how to replace it to works on my script:

parameter: @startuml\nBob->Alice:hello\n@enduml

code:

s = new net.sourceforge.plantuml.SourceStringReader("@startuml\nBob->Alice:hello\n@enduml")
FileOutputStream file = new FileOutputStream("c:/testGroovy2.png")
s.generateImage(file);
file.close()
source:
http://plantuml.com/code-groovy
thanks,
Raul

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...