command line parameter to compare resource (.properties) files

This commit is contained in:
honfika@gmail.com
2015-05-26 15:38:20 +02:00
parent dc28ce5da7
commit 38d8f05524
2 changed files with 100 additions and 33 deletions

View File

@@ -69,6 +69,7 @@ import com.jpexs.decompiler.flash.exporters.settings.SoundExportSettings;
import com.jpexs.decompiler.flash.exporters.settings.TextExportSettings;
import com.jpexs.decompiler.flash.exporters.swf.SwfXmlExporter;
import com.jpexs.decompiler.flash.gui.Main;
import com.jpexs.decompiler.flash.gui.helpers.CheckResources;
import com.jpexs.decompiler.flash.helpers.FileTextWriter;
import com.jpexs.decompiler.flash.importers.BinaryDataImporter;
import com.jpexs.decompiler.flash.importers.ImageImporter;
@@ -398,9 +399,12 @@ public class CommandLineArgumentParser {
}
Configuration.debugMode.set(true);
break;
case "-debugtool":
case "--debugtool":
parseDebugTool(args);
break;
case "--compareresources":
parseCompareResources(args);
break;
default:
break OUTER;
}
@@ -836,6 +840,16 @@ public class CommandLineArgumentParser {
}
}
private static void parseCompareResources(Stack<String> args) {
String revision = args.pop().toLowerCase();
String revision2 = null;
if (!args.isEmpty()) {
revision2 = args.pop();
}
CheckResources.compareResources(System.out, revision, revision2);
}
private static void parseProxy(Stack<String> args) {
int port = 55555;
String portStr = args.peek();