mirror of https://github.com/dspinellis/UMLGraph
Avoid breaking previous behaviour for -output (from Antti Hakala feedback)
This commit is contained in:
parent
2ae9b91a43
commit
182e9c96d8
|
|
@ -788,7 +788,16 @@ class ClassGraph {
|
|||
* @throws IOException */
|
||||
public void prologue() throws IOException {
|
||||
Options opt = optionProvider.getGlobalOptions();
|
||||
FileOutputStream fos = new FileOutputStream(new File(opt.outputDirectory, opt.outputFileName));
|
||||
// prepare output file. Use the output file name as a full path unless the output
|
||||
// directory is specified
|
||||
File file = null;
|
||||
if(opt.outputDirectory != null)
|
||||
file = new File(opt.outputDirectory, opt.outputFileName);
|
||||
else
|
||||
file = new File(opt.outputFileName);
|
||||
FileOutputStream fos = new FileOutputStream(file);
|
||||
|
||||
// print plologue
|
||||
w = new PrintWriter(new BufferedWriter(new OutputStreamWriter(fos, opt.outputEncoding)));
|
||||
w.println(
|
||||
"#!/usr/local/bin/dot\n" +
|
||||
|
|
|
|||
|
|
@ -788,7 +788,16 @@ class ClassGraph {
|
|||
* @throws IOException */
|
||||
public void prologue() throws IOException {
|
||||
Options opt = optionProvider.getGlobalOptions();
|
||||
FileOutputStream fos = new FileOutputStream(new File(opt.outputDirectory, opt.outputFileName));
|
||||
// prepare output file. Use the output file name as a full path unless the output
|
||||
// directory is specified
|
||||
File file = null;
|
||||
if(opt.outputDirectory != null)
|
||||
file = new File(opt.outputDirectory, opt.outputFileName);
|
||||
else
|
||||
file = new File(opt.outputFileName);
|
||||
FileOutputStream fos = new FileOutputStream(file);
|
||||
|
||||
// print plologue
|
||||
w = new PrintWriter(new BufferedWriter(new OutputStreamWriter(fos, opt.outputEncoding)));
|
||||
w.println(
|
||||
"#!/usr/local/bin/dot\n" +
|
||||
|
|
|
|||
Loading…
Reference in New Issue