Hi
I have sequnce diagrams that use the !include directive extensively for maintaining consistency (skins, constants, hyperlinks)
In order to get better rendering speed, i run my own plantuml server using jetty on my mac and i pass the
-Dplantuml.include.path
argument in JAVA_OPTIONS in my .jettyrc.
This works very well and i can switch between local rendering or server rendering without needing to change the content of my plantuml file.This broke after i updated to 2019.11 War file. So for now i have gone back to the 2019.10 version
So an example of use
!include constants.pu
(where constants.pu is a file in the folder specified by plantuml.includepath.)
This basically throws an error like below in 2019.11
Error found in diagram 0.3.1.1_-_Scheduling_-_Expedited_Scheduling
cannot include constants.pu (@ Diagram Line 1, File Line 2)
"!include constants.pu"
(Error)
Note that specifying a full url works in both 2019.10 and 2019.11 wars
e.g.
!include http://localhost:8080/include/constants.pu
But it was nicer to just specify the file directly and having a global constant deal with its actual location as the location could be different depending on where it was deployed.
C
QUESTION 2:
Over and above - is there a way to specify include paths as URLs? i.e. as below
-Dplantuml.include.path=http://<server>:<port>/<folder>
That lends itself nicely to server deployments where i can point to the raw file in say github without needing to explicitly put the full url in every pu file in the project.
Best regards,
Bharat