mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-23 09:15:33 +00:00
create stdout and stderr fodlers when not exists
This commit is contained in:
@@ -1106,11 +1106,15 @@ public class CommandLineArgumentParser {
|
||||
for (File inFile : inFiles) {
|
||||
String inFileName = Path.getFileNameWithoutExtension(inFile);
|
||||
if (stdOut != null) {
|
||||
System.setOut(new PrintStream(new FileOutputStream(stdOut.replace("{swfFile}", inFileName), true)));
|
||||
String outFilePath = stdOut.replace("{swfFile}", inFileName);
|
||||
Path.createDirectorySafe(new File(outFilePath).getParentFile());
|
||||
System.setOut(new PrintStream(new FileOutputStream(outFilePath, true)));
|
||||
}
|
||||
|
||||
if (stdErr != null) {
|
||||
System.setErr(new PrintStream(new FileOutputStream(stdErr.replace("{swfFile}", inFileName), true)));
|
||||
String errFilePath = stdErr.replace("{swfFile}", inFileName);
|
||||
Path.createDirectorySafe(new File(errFilePath).getParentFile());
|
||||
System.setErr(new PrintStream(new FileOutputStream(errFilePath, true)));
|
||||
Main.initLogging(Configuration.debugMode.get());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user