27 QCString baseName(4096);
28 static int umlindex=1;
30 if (fileName.isEmpty())
32 baseName = outDir+
"/inline_umlgraph_"+QCString().setNum(umlindex++);
37 int i=baseName.findRev(
'.');
38 if (i!=-1) baseName = baseName.left(i);
39 baseName.prepend(outDir+
"/");
41 QFile file(baseName+
".pu");
42 if (!file.open(IO_WriteOnly))
44 err(
"Could not open file %s for writing\n",baseName.data());
46 QCString text =
"@startuml\n";
49 file.writeBlock( text, text.length() );
58 QCString pumlExe =
"java";
59 QCString pumlArgs =
"";
61 QStrList &pumlIncludePathList =
Config_getList(PLANTUML_INCLUDE_PATH);
62 char *s=pumlIncludePathList.first();
65 pumlArgs +=
"-Dplantuml.include.path=\"";
67 s = pumlIncludePathList.next();
73 s = pumlIncludePathList.next();
75 if (pumlIncludePathList.first()) pumlArgs +=
"\" ";
76 pumlArgs +=
"-Djava.awt.headless=true -jar \""+plantumlJarPath+
"plantuml.jar\" ";
99 pumlArgs+=
"-charset UTF-8 ";
102 msg(
"Running PlantUML on generated file %s.pu\n",baseName);
106 err(
"Problems running PlantUML. Verify that the command 'java -jar \"%splantuml.jar\" -h' works from the command line. Exit code: %d\n",
107 plantumlJarPath.data(),exitCode);
111 QFile(QCString(baseName)+
".pu").remove();
117 epstopdfArgs.sprintf(
"\"%s.eps\" --outfile=\"%s.pdf\"",baseName,baseName);
121 err(
"Problems running epstopdf. Check your TeX installation! Exit code: %d\n",exitCode);