diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2014-08-10 18:09:33 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2014-08-10 18:09:33 (GMT) |
commit | 7506404e646f1fcc5a26ca6fca91a7f65154f05a (patch) | |
tree | f97964759aa6238f02bd5b7f853306c19965914d /src/config.l | |
parent | 97d12d058a7831adcc8c6f2cfe8c20ddd2ae5bc2 (diff) | |
download | Doxygen-7506404e646f1fcc5a26ca6fca91a7f65154f05a.zip Doxygen-7506404e646f1fcc5a26ca6fca91a7f65154f05a.tar.gz Doxygen-7506404e646f1fcc5a26ca6fca91a7f65154f05a.tar.bz2 |
Bug 731947 - Support for PlantUML
Diffstat (limited to 'src/config.l')
-rw-r--r-- | src/config.l | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/config.l b/src/config.l index 133bc11..a237faf 100644 --- a/src/config.l +++ b/src/config.l @@ -1329,6 +1329,37 @@ void Config::check() mscgenPath=""; } + // check plantuml path + QCString &plantumlJarPath = Config_getString("PLANTUML_JAR_PATH"); + if (!plantumlJarPath.isEmpty()) + { + QFileInfo pu(plantumlJarPath); + if (pu.exists() && pu.isDir()) // PLANTUML_JAR_PATH is directory + { + QFileInfo jar(plantumlJarPath+portable_pathSeparator()+"plantuml.jar"); + if (jar.exists() && jar.isFile()) + { + plantumlJarPath = jar.dirPath(TRUE).utf8()+portable_pathSeparator(); + } + else + { + config_err("Jar file plantuml.jar not found at location " + "specified via PLANTUML_JAR_PATH: '%s'\n",plantumlJarPath.data()); + plantumlJarPath=""; + } + } + else if (pu.exists() && pu.isFile() && plantumlJarPath.right(4)==".jar") // PLANTUML_JAR_PATH is file + { + plantumlJarPath = pu.dirPath(TRUE).utf8()+portable_pathSeparator(); + } + else + { + config_err("path specified via PLANTUML_JAR_PATH does not exist or not a directory: %s\n", + plantumlJarPath.data()); + plantumlJarPath=""; + } + } + // check dia path QCString &diaPath = Config_getString("DIA_PATH"); if (!diaPath.isEmpty()) |