From c24cb9a74ef0af854455047f29f9925d79ac0195 Mon Sep 17 00:00:00 2001 From: Remko van der Vossen Date: Mon, 23 Oct 2017 18:08:16 +0200 Subject: Provide dot path to plantuml If HAVE_DOT = YES and DOT_PATH is configured, pass the path to the dot executable to plantuml with the -graphvizdot option. --- src/plantuml.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/plantuml.cpp b/src/plantuml.cpp index f97f690..609d5fd 100644 --- a/src/plantuml.cpp +++ b/src/plantuml.cpp @@ -57,6 +57,7 @@ void generatePlantUMLOutput(const char *baseName,const char *outDir,PlantUMLOutp { static QCString plantumlJarPath = Config_getString(PLANTUML_JAR_PATH); static QCString plantumlConfigFile = Config_getString(PLANTUML_CFG_FILE); + static QCString dotPath = Config_getString(DOT_PATH); QCString pumlExe = "java"; QCString pumlArgs = ""; @@ -83,6 +84,12 @@ void generatePlantUMLOutput(const char *baseName,const char *outDir,PlantUMLOutp pumlArgs += plantumlConfigFile; pumlArgs += "\" "; } + if (Config_getBool(HAVE_DOT) && !dotPath.isEmpty()) + { + pumlArgs += "-graphvizdot \""; + pumlArgs += dotPath; + pumlArgs += "dot\" "; + } pumlArgs+="-o \""; pumlArgs+=outDir; pumlArgs+="\" "; -- cgit v0.12