The -D option of command line does't work when -pipe option is used

0 votes
asked Dec 10, 2017 in Closed bug by Anthony-Gaudino (5,720 points)
recategorized Feb 18, 2018 by Anthony-Gaudino

I'm using the following command:

java -jar ../plantuml.jar -teps -DSMALLDIAGRAM=TRUE -pipe < class_diagram.puml > class_diagram_small.eps

And in my code I have:

!ifdef SMALLDIAGRAM
    DO X
!else
    DO Y
!endif

And only the else is executed.

I'm trying yo use the pipe because I want to generate two EPS documents from the same .puml file, so executing one command with the -D and setting the SMALLDIAGRAM to TRUE it would generate a small_diagram.eps and without it, would generate a diagram.eps.

PlantUML version 1.2017.20 (Mon Dec 11 17:57:05 CET 2017)
(GPL source distribution)
Java Runtime: OpenJDK Runtime Environment
JVM: OpenJDK 64-Bit Server VM
Java Version: 9-Debian+0-9b181-4bpo91
Operating System: Linux
OS Version: 4.9.0-4-amd64
Default Encoding: UTF-8
Language: en
Country: US
Machine: Debian
PLANTUML_LIMIT_SIZE: 4096
Processors: 4
Max Memory: 826,277,888
Total Memory: 52,428,800
Free Memory: 45,253,920
Used Memory: 7,174,880
Thread Active Count: 1

The environment variable GRAPHVIZ_DOT has not been set
Dot executable is /usr/bin/dot
Dot version: dot - graphviz version 2.38.0 (20140413.2041)
Installation seems OK. File generation OK

1 Answer

0 votes
answered Dec 28, 2017 by plantuml (294,960 points)
selected Feb 18, 2018 by Anthony-Gaudino
 
Best answer
Thanks for your detailled report.

This should be fixed in last beta http://beta.plantuml.net/plantuml.jar

Tell us if it's not working for you!
...