flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pio...@apache.org
Subject git commit: [flex-falcon] [refs/heads/develop] - Make compile.targets configurable for SWC type of build
Date Fri, 07 Jul 2017 22:23:21 GMT
Repository: flex-falcon
Updated Branches:
  refs/heads/develop eb57102f9 -> ba025daac


Make compile.targets configurable for SWC type of build


Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/ba025daa
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/ba025daa
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/ba025daa

Branch: refs/heads/develop
Commit: ba025daac12db6344ee1a0fd6f2821d1af58f975
Parents: eb57102
Author: piotrz <piotrz@apache.org>
Authored: Sat Jul 8 00:21:51 2017 +0200
Committer: piotrz <piotrz@apache.org>
Committed: Sat Jul 8 00:21:51 2017 +0200

----------------------------------------------------------------------
 .../main/java/org/apache/flex/maven/flexjs/CompileASMojo.java   | 5 ++++-
 .../main/java/org/apache/flex/maven/flexjs/CompileJSMojo.java   | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/ba025daa/flexjs-maven-plugin/src/main/java/org/apache/flex/maven/flexjs/CompileASMojo.java
----------------------------------------------------------------------
diff --git a/flexjs-maven-plugin/src/main/java/org/apache/flex/maven/flexjs/CompileASMojo.java
b/flexjs-maven-plugin/src/main/java/org/apache/flex/maven/flexjs/CompileASMojo.java
index 2610286..da14c74 100644
--- a/flexjs-maven-plugin/src/main/java/org/apache/flex/maven/flexjs/CompileASMojo.java
+++ b/flexjs-maven-plugin/src/main/java/org/apache/flex/maven/flexjs/CompileASMojo.java
@@ -44,6 +44,9 @@ public class CompileASMojo
     @Parameter(defaultValue = "false")
     private boolean skipAS;
 
+    @Parameter
+    protected String targets = "SWF,JSFlex";
+
     @Component
     private MavenProjectHelper projectHelper;
     
@@ -86,7 +89,7 @@ public class CompileASMojo
     @Override
     protected List<String> getCompilerArgs(File configFile) throws MojoExecutionException
{
         List<String> args = super.getCompilerArgs(configFile);
-        args.add("-compiler.targets=SWF,JSFlex");
+        args.add("-compiler.targets=" + targets);
         args.add("-compiler.strict-xml=true");
         return args;
     }

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/ba025daa/flexjs-maven-plugin/src/main/java/org/apache/flex/maven/flexjs/CompileJSMojo.java
----------------------------------------------------------------------
diff --git a/flexjs-maven-plugin/src/main/java/org/apache/flex/maven/flexjs/CompileJSMojo.java
b/flexjs-maven-plugin/src/main/java/org/apache/flex/maven/flexjs/CompileJSMojo.java
index d30eec4..8304145 100644
--- a/flexjs-maven-plugin/src/main/java/org/apache/flex/maven/flexjs/CompileJSMojo.java
+++ b/flexjs-maven-plugin/src/main/java/org/apache/flex/maven/flexjs/CompileJSMojo.java
@@ -47,6 +47,9 @@ public class CompileJSMojo
     @Parameter(defaultValue = "false")
     private boolean skipJS;
 
+    @Parameter
+    protected String targets = "SWF,JSFlex";
+    
     @Component
     private MavenProjectHelper projectHelper;
     
@@ -84,7 +87,7 @@ public class CompileJSMojo
     @Override
     protected List<String> getCompilerArgs(File configFile) throws MojoExecutionException
{
         List<String> args = super.getCompilerArgs(configFile);
-        args.add("-compiler.targets=SWF,JSFlex");
+        args.add("-compiler.targets=" + targets);
         args.add("-compiler.strict-xml=true");
         return args;
     }


Mime
View raw message