From 6479d246d7f67336169f40e8103c9a42fbcaa7bf Mon Sep 17 00:00:00 2001 From: "honfika@gmail.com" Date: Tue, 7 Apr 2015 09:23:53 +0200 Subject: [PATCH] single script export from command line --- .../flash/console/CommandLineArgumentParser.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/com/jpexs/decompiler/flash/console/CommandLineArgumentParser.java b/src/com/jpexs/decompiler/flash/console/CommandLineArgumentParser.java index ad601f796..34bb042e8 100644 --- a/src/com/jpexs/decompiler/flash/console/CommandLineArgumentParser.java +++ b/src/com/jpexs/decompiler/flash/console/CommandLineArgumentParser.java @@ -1057,7 +1057,17 @@ public class CommandLineArgumentParser { boolean parallel = Configuration.parallelSpeedUp.get(); String scriptsFolder = Path.combine(outDir, "scripts"); Path.createDirectorySafe(new File(scriptsFolder)); - ScriptExportSettings scriptExportSettings = new ScriptExportSettings(enumFromStr(formats.get("script"), ScriptExportMode.class), !parallel && Configuration.scriptExportSingleFile.get()); + Boolean singleScriptFile = parseBooleanConfigValue(formats.get("singlescript")); + if (singleScriptFile == null) { + singleScriptFile = Configuration.scriptExportSingleFile.get(); + } + + if (parallel && singleScriptFile) { + System.out.println("Single file script export is not supported with enabled parallel speedup"); + singleScriptFile = false; + } + + ScriptExportSettings scriptExportSettings = new ScriptExportSettings(enumFromStr(formats.get("script"), ScriptExportMode.class), singleScriptFile); if (exportAll || exportFormats.contains("script")) { System.out.println("Exporting scripts..."); if (as3classes.isEmpty()) {