output dir is relative to input dir rather than working directory

0 votes
asked Jun 29, 2015 in Bug by enilwir (200 points)
Hi

 

I just ran plantuml for this script:

#!/bin/csh
setenv PLANTUMLJAR ./plantuml.jar
set path = ($path /<snip>/inkscape/.sys/amd64_linux26/0.46/bin/ ) #for dot)

echo "to tex/tikz"
java -jar $PLANTUMLJAR documentsubs/*.plantuml -o umls/ -tlatex

and I want the following structure:

workingdir

documentsubs/

--------| interaction.plantuml

umls/

--------| interaction.latex

 

but rather umls/ is created inside documentsubs.

$ ls documentsubs/*

documentsubs/interact.plantuml

documentsubs/umls:
interact.latex

1 Answer

0 votes
answered Jun 29, 2015 by plantuml (295,000 points)
This may sound as a strange decision, but this is a feature.

(see also http://plantuml.sourceforge.net/qa/?qa=399/commande-line-output-directory-work-when-using-relativ-path )

We cannot change this now without breaking all existing scripts.

You can use a variable in your script to give an absolute path to the -o option. This should solve your issue.

Sorry about that!
...