Generating images from all *.puml files from directory using CLI

0 votes
asked Apr 9, 2020 in Question / help by Tobiasz
Hi,
Problem description:
I have directory with several *.puml files. I want to generate images for all of them from CLI. When I use:
> java -jar plantuml.1.2020.6.jar .
output is:
>  No diagram found

I found that if I change extension to *.txt or *.pu then everything works but *.puml is a default extension in my IDE plugin (IntelliJ) and I don't want to change it.

Of course when I add name of diagram to command it will work. Example:
> java -jar plantuml.1.2020.6.jar test.puml
part of verbose output:
> (1.217 - 256 Mo) 244 Mo - Number of image(s): 1

but I want to make it as simple as possible.

Question:
Why *.puml doesn't work? I thought that it is a default extension for plantUml files. Is there any param which will include *.puml files for diagrams generation from given directory?

1 Answer

0 votes
answered Apr 9, 2020 by Tobiasz

Oh, I found a solution by myself. Answer is: "use wildcard", example for other users with the same issue:

> java -jar plantuml.1.2020.6.jar ./*.puml

or simple
> java -jar plantuml.1.2020.6.jar *.puml

but first part of a question is still valid. Why *.puml is not included as a one of a default extensions thanks to which wildcard would not be required? 

commented Apr 9, 2020 by plantuml (295,000 points)
Thanks for the report.

There were a typo in the code... We've just fixed it in last beta http://beta.plantuml.net/plantuml.jar

Tell us if it's not working for you!
commented Apr 9, 2020 by Tobiasz
It works, thanks :) so I will stick to my workaround till next official release ;)
...