Use Environment variable for !include directive path

0 votes
asked Jan 29, 2014 in Wanted features by davidP (300 points)

Hi,

Team shares same plantuml files but in differents paths for each environement...

So in order to keep same version of plantuml file identical fior all, we would like to have the capability to use windows Env. variable in !include path like this (for example)

@startuml
scale 600*400
!include %PLANTUML_HOME%\file.txt
@enduml

BR,

David

 

1 Answer

+1 vote
answered Jan 29, 2014 by plantuml (295,000 points)

This is not exactly your need, but the following answer may be usefull for you:

http://plantuml.sourceforge.net/qa/?qa=1553/how-to-pass-a-search-path-for-include-files&show=1563#c1563

 

commented Jan 29, 2014 by davidP (300 points)
The problem with this Solution is that, with the Word add-in (or Eclipse ?), there is no way to customize the command line as proposed :(
commented Jan 29, 2014 by plantuml (295,000 points)
Ok, you can download a beta here :
https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

With this beta, you can have:

@startuml
!include %windir%/test1.txt
Bob -> Alice : hello
@enduml

(pay attention to restart Eclipse/Word after defining the environment variable)

We have implemented that also, even if it's not your need:
@startuml
!define PLANTUML_HOME c:/foo
!include PLANTUML_HOME/test1.txt
Bob -> Alice : hello
@enduml
commented Jan 30, 2014 by davidP (300 points)
edited Jan 30, 2014 by davidP
Finally, I've rebooted my PC.
... And the beta is now working from Word.
Perfect!

Thanks a lot ;)
...