This is an automated email from the ASF dual-hosted git repository.
carlosrovira pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git
The following commit(s) were added to refs/heads/develop by this push:
new c00db51 closure-compiler: apply run-options during parse
new 800f9f3 Merge pull request #94 from mrchnk/develop
c00db51 is described below
commit c00db5101f9f944c47cccde88ee60c200353f64b
Author: mrchnk <[email protected]>
AuthorDate: Fri Aug 2 18:54:15 2019 +0300
closure-compiler: apply run-options during parse
CommandLineRunner keeps shared run-options separated and
apply it during compilation
---
.../compiler/utils/JSClosureCompilerWrapper.java | 22 ++++++++++++----------
1 file changed, 12 insertions(+), 10 deletions(-)
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 @@ import com.google.javascript.jscomp.WarningLevel;
public class JSClosureCompilerWrapper
{
- public JSClosureCompilerWrapper(List<String> args)
+ public JSClosureCompilerWrapper(List<String> args) throws IOException
{
Compiler.setLoggingLevel(Level.INFO);
@@ -490,14 +490,16 @@ public class JSClosureCompilerWrapper
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;
+ }
}
}