Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

Include file(s) or path via command line

0 votes

On http://plantuml.com/command-line I have found:

    -DVAR1=value		To set a preprocessing variable as if '!define VAR1 value' were used
    -Sparam1=value		To set a skin parameter as if 'skinparam param1 value' were used

But nothing about !include. I would like to have yet another feature - include file like:

    -I=path/to/file.puml	To include file as if '!include file.puml' were used
    -I=path/to/folder/		The same but all files in folder
    -I=path/to/folder/*.skinparam  The same by pattern

I expect to use this feature to `!include style.skinparam`. And I would like to have ability to change a style without changing source files.

Thanks for attention.

asked Mar 12 in Wanted features by kyb (220 points)

1 Answer

0 votes

Thank for your proposal.

There is a flag that sounds like what you are looking for:
java -jar plantuml.jar -config /path/to/file.puml

However, there could be right now only one single config file (but file.puml can itself contain several !include lines)

Since we find your syntax proposal more clear, so in future version, we might add:
java -jar plantuml.jar -I/path/to/file.puml -I/path/to/folder/*.skinparam

We'll post a message here when ready.
 

answered Mar 13 by plantuml (118,230 points)
A beta with -I option is available here
https://dl.dropboxusercontent.com/u/13064071/plantuml.jar
This has not been widely tested, so feedback welcome!
Support This Project Offer 250 Mo! Follow PlantUML on Twitter
...