Skip to content

Commit

Permalink
Provide dot path to plantuml
Browse files Browse the repository at this point in the history
If HAVE_DOT = YES and DOT_PATH is configured, pass the path to the dot executable to plantuml with the -graphvizdot option.
  • Loading branch information
wich authored and revossen-asml committed Oct 23, 2017
1 parent 929ea15 commit c24cb9a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/plantuml.cpp
Expand Up @@ -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 = "";
Expand All @@ -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+="\" ";
Expand Down

0 comments on commit c24cb9a

Please sign in to comment.