You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ad...@apache.org on 2016/01/14 17:14:54 UTC
git commit: [flex-falcon] [refs/heads/develop] - need to initialize
jsSourceFiles_ before calling initOptions() in order for --js flag to work
Repository: flex-falcon
Updated Branches:
refs/heads/develop 9f31b8793 -> 6f47ace4d
need to initialize jsSourceFiles_ before calling initOptions() in order
for --js flag to work
Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/6f47ace4
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/6f47ace4
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/6f47ace4
Branch: refs/heads/develop
Commit: 6f47ace4ded125b924d8cd4afaa7f63f8c0d24d7
Parents: 9f31b87
Author: Andy Dufilie <ad...@apache.org>
Authored: Thu Jan 14 11:10:59 2016 -0500
Committer: Andy Dufilie <ad...@apache.org>
Committed: Thu Jan 14 11:10:59 2016 -0500
----------------------------------------------------------------------
.../apache/flex/compiler/utils/JSClosureCompilerWrapper.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/6f47ace4/compiler.jx/src/org/apache/flex/compiler/utils/JSClosureCompilerWrapper.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/utils/JSClosureCompilerWrapper.java b/compiler.jx/src/org/apache/flex/compiler/utils/JSClosureCompilerWrapper.java
index e353dc8..dad41d4 100644
--- a/compiler.jx/src/org/apache/flex/compiler/utils/JSClosureCompilerWrapper.java
+++ b/compiler.jx/src/org/apache/flex/compiler/utils/JSClosureCompilerWrapper.java
@@ -65,12 +65,13 @@ public class JSClosureCompilerWrapper
String[] stringArgs = new String[splitArgs.size()];
splitArgs.toArray(stringArgs);
options_ = new CompilerOptionsParser(stringArgs).getOptions();
- initOptions(args);
+ jsSourceFiles_ = new ArrayList<SourceFile>();
jsExternsFiles_ = new ArrayList<SourceFile>();
+
+ initOptions(args);
initExterns();
- jsSourceFiles_ = new ArrayList<SourceFile>();
}
private Compiler compiler_;