- Fixed a problem not supporting DEFINE::JS expressions when compiling Applications to JS
Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/a3905586 Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/a3905586 Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/a3905586 Branch: refs/heads/master Commit: a39055866a4eb0473e2d74eba1449b1de000ded3 Parents: 883bebd Author: Christofer Dutz <[email protected]> Authored: Wed Feb 15 19:48:53 2017 +0100 Committer: Christofer Dutz <[email protected]> Committed: Wed Feb 15 19:48:53 2017 +0100 ---------------------------------------------------------------------- .../main/java/org/apache/flex/maven/flexjs/CompileAppMojo.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/a3905586/flexjs-maven-plugin/src/main/java/org/apache/flex/maven/flexjs/CompileAppMojo.java ---------------------------------------------------------------------- diff --git a/flexjs-maven-plugin/src/main/java/org/apache/flex/maven/flexjs/CompileAppMojo.java b/flexjs-maven-plugin/src/main/java/org/apache/flex/maven/flexjs/CompileAppMojo.java index c7e9dbe..258f6cc 100644 --- a/flexjs-maven-plugin/src/main/java/org/apache/flex/maven/flexjs/CompileAppMojo.java +++ b/flexjs-maven-plugin/src/main/java/org/apache/flex/maven/flexjs/CompileAppMojo.java @@ -177,8 +177,8 @@ public class CompileAppMojo @Override protected List<Define> getDefines() throws MojoExecutionException { List<Define> defines = super.getDefines(); - defines.add(new Define("COMPILE::JS", "false")); - defines.add(new Define("COMPILE::SWF", "true")); + defines.add(new Define("COMPILE::JS", outputJavaScript ? "true" : "false")); + defines.add(new Define("COMPILE::SWF", outputJavaScript ? "false" : "true")); return defines; }
