It is possible using the JAVA API to set programatically the GRAPHVIZ_DOT ?

0 votes
asked Apr 13, 2020 in Question / help by Alf
Hello,

Unstead of using a batch file to start the java process, I would like to set a variable or call a function to override the GRAPHVIZ_DOT env var.

Alf

1 Answer

0 votes
answered Apr 13, 2020 by Alf
edited Apr 13, 2020
 
Best answer

After seing the PLANTUML_LIMIT_SIZE sample on https://plantuml.com/fr/faq, I discover ttat plantuml is using system env and java properties.

So, using the setProperty is working:

System.setProperty("GRAPHVIZ_DOT", "graphviz-2.38\\release\\bin\\dot.exe");

commented Apr 14, 2020 by albert (3,520 points)
For non French speaking people: https://plantuml.com/faq
...