Repository: flex-falcon
Updated Branches:
  refs/heads/develop ab582dd17 -> e7234729f


- Added an "additionalCompilerOptions" config option to pass compiler options 
to the compiler mojo directly.


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

Branch: refs/heads/develop
Commit: e7234729f5059b058ec482a668f962e3ded7ff5c
Parents: ab582dd
Author: Christofer Dutz <christofer.d...@codecentric.de>
Authored: Mon Oct 24 11:35:04 2016 +0200
Committer: Christofer Dutz <christofer.d...@codecentric.de>
Committed: Mon Oct 24 11:35:23 2016 +0200

----------------------------------------------------------------------
 .../src/main/java/org/apache/flex/maven/flexjs/BaseMojo.java   | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/e7234729/flexjs-maven-plugin/src/main/java/org/apache/flex/maven/flexjs/BaseMojo.java
----------------------------------------------------------------------
diff --git 
a/flexjs-maven-plugin/src/main/java/org/apache/flex/maven/flexjs/BaseMojo.java 
b/flexjs-maven-plugin/src/main/java/org/apache/flex/maven/flexjs/BaseMojo.java
index 0b9ec99..b745eb1 100644
--- 
a/flexjs-maven-plugin/src/main/java/org/apache/flex/maven/flexjs/BaseMojo.java
+++ 
b/flexjs-maven-plugin/src/main/java/org/apache/flex/maven/flexjs/BaseMojo.java
@@ -88,6 +88,9 @@ public abstract class BaseMojo
     @Parameter(readonly = true, defaultValue = "${repositorySystemSession}")
     private RepositorySystemSession repositorySystemSession;
 
+    @Parameter
+    private String additionalCompilerOptions = null;
+
     @Component
     private ProjectDependenciesResolver projectDependenciesResolver;
 
@@ -206,6 +209,9 @@ public abstract class BaseMojo
     protected List<String> getCompilerArgs(File configFile) throws 
MojoExecutionException {
         List<String> args = new LinkedList<String>();
         args.add("-load-config=" + configFile.getPath());
+        if(additionalCompilerOptions != null) {
+            args.add(additionalCompilerOptions);
+        }
         return args;
     }
 

Reply via email to