mirror of
https://github.com/octoleo/plantuml.git
synced 2025-04-07 02:31:51 +00:00
Change the output of a file to match the natural file structure. In reference to plantuml/plantuml#672
This commit is contained in:
parent
2a3ecbb72e
commit
467241bf92
@ -477,7 +477,7 @@ public class Run {
|
|||||||
}
|
}
|
||||||
final ISourceFileReader sourceFileReader;
|
final ISourceFileReader sourceFileReader;
|
||||||
if (option.getOutputFile() == null) {
|
if (option.getOutputFile() == null) {
|
||||||
File outputDir = option.getOutputDir();
|
File outputDir = option.getOutputDir().getAbsoluteFile();
|
||||||
if (outputDir != null && outputDir.getPath().endsWith("$")) {
|
if (outputDir != null && outputDir.getPath().endsWith("$")) {
|
||||||
final String path = outputDir.getPath();
|
final String path = outputDir.getPath();
|
||||||
outputDir = new File(path.substring(0, path.length() - 1)).getAbsoluteFile();
|
outputDir = new File(path.substring(0, path.length() - 1)).getAbsoluteFile();
|
||||||
@ -490,6 +490,7 @@ public class Run {
|
|||||||
} else {
|
} else {
|
||||||
sourceFileReader = new SourceFileReaderHardFile(option.getDefaultDefines(f), f, option.getOutputFile(),
|
sourceFileReader = new SourceFileReaderHardFile(option.getDefaultDefines(f), f, option.getOutputFile(),
|
||||||
option.getConfig(), option.getCharset(), option.getFileFormatOption());
|
option.getConfig(), option.getCharset(), option.getFileFormatOption());
|
||||||
|
System.out.println(option.getOutputFile().getAbsolutePath());
|
||||||
}
|
}
|
||||||
sourceFileReader.setCheckMetadata(option.isCheckMetadata());
|
sourceFileReader.setCheckMetadata(option.isCheckMetadata());
|
||||||
((SourceFileReaderAbstract) sourceFileReader).setNoerror(option.isNoerror());
|
((SourceFileReaderAbstract) sourceFileReader).setNoerror(option.isNoerror());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user