closure-compiler: apply run-options during parse
CommandLineRunner keeps shared run-options separated and
apply it during compilation
diff --git a/compiler-jx/src/main/java/org/apache/royale/compiler/utils/JSClosureCompilerWrapper.java b/compiler-jx/src/main/java/org/apache/royale/compiler/utils/JSClosureCompilerWrapper.java
index 47df6d8..ae3d614 100644
--- a/compiler-jx/src/main/java/org/apache/royale/compiler/utils/JSClosureCompilerWrapper.java
+++ b/compiler-jx/src/main/java/org/apache/royale/compiler/utils/JSClosureCompilerWrapper.java
@@ -50,7 +50,7 @@
public class JSClosureCompilerWrapper
{
- public JSClosureCompilerWrapper(List<String> args)
+ public JSClosureCompilerWrapper(List<String> args) throws IOException
{
Compiler.setLoggingLevel(Level.INFO);
@@ -490,14 +490,16 @@
private static class CompilerOptionsParser extends CommandLineRunner
{
- public CompilerOptionsParser(String[] args)
- {
- super(args);
- }
-
- public CompilerOptions getOptions()
- {
- return createOptions();
- }
+ public CompilerOptionsParser(String[] args)
+ {
+ super(args);
+ }
+
+ public CompilerOptions getOptions() throws IOException
+ {
+ CompilerOptions options = createOptions();
+ setRunOptions(options);
+ return options;
+ }
}
}