Correct output of UmlGraphDoc path-relative file names under Windows

Fix by: Panagiotis Astithas
This commit is contained in:
Diomidis Spinellis 2007-03-05 09:37:34 +00:00
parent ff7869b7c7
commit c410ab3fad
3 changed files with 6 additions and 2 deletions

View File

@ -5,6 +5,10 @@
<dt>Version 4.7 Under development </dt><dd>
<ul>
<li> Correct the build file for generating the UmlGraph
javadocs under Unix (Dirk Datzert)</li>
<li> Correct output of UmlGraphDoc path-relative file names under Windows
(fix by: Panagiotis Astithas)</li>
</ul>
</dd>

View File

@ -984,7 +984,7 @@ class ClassGraph {
if (opt.outputDirectory != null)
file = new File(opt.outputDirectory, opt.outputFileName);
else
file = new File(".", opt.outputFileName);
file = new File(opt.outputFileName);
// make sure the output directory are there, otherwise create them
if(!file.getParentFile().exists())
file.getParentFile().mkdirs();

View File

@ -984,7 +984,7 @@ class ClassGraph {
if (opt.outputDirectory != null)
file = new File(opt.outputDirectory, opt.outputFileName);
else
file = new File(".", opt.outputFileName);
file = new File(opt.outputFileName);
// make sure the output directory are there, otherwise create them
if(!file.getParentFile().exists())
file.getParentFile().mkdirs();