aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2012-11-05 16:37:20 (EST)
committerJan Sievers2012-11-06 06:50:57 (EST)
commit4b19210d8989c8d9c4c0dcb57da00bdee69aad6b (patch)
tree4e7f5e72c19050e7fa140ce6da57f5d534a9a264
parentc1296a0cf29a202ca45419e2d84310ee897d4dbd (diff)
downloadorg.eclipse.tycho-4b19210d8989c8d9c4c0dcb57da00bdee69aad6b.zip
org.eclipse.tycho-4b19210d8989c8d9c4c0dcb57da00bdee69aad6b.tar.gz
org.eclipse.tycho-4b19210d8989c8d9c4c0dcb57da00bdee69aad6b.tar.bz2
393387 Support -A as compiler argumentrefs/changes/26/8526/2
This is backport of maven compiler bug http://jira.codehaus.org/browse/MCOMPILER-135 Bug: 393387 Change-Id: Id6cfb66f6504ed51d755b9b54074e13fe27352e5
-rw-r--r--tycho-compiler-plugin/src/main/java/copied/org/apache/maven/plugin/AbstractCompilerMojo.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/tycho-compiler-plugin/src/main/java/copied/org/apache/maven/plugin/AbstractCompilerMojo.java b/tycho-compiler-plugin/src/main/java/copied/org/apache/maven/plugin/AbstractCompilerMojo.java
index e1013c9..61cabc7 100644
--- a/tycho-compiler-plugin/src/main/java/copied/org/apache/maven/plugin/AbstractCompilerMojo.java
+++ b/tycho-compiler-plugin/src/main/java/copied/org/apache/maven/plugin/AbstractCompilerMojo.java
@@ -499,7 +499,11 @@ public abstract class AbstractCompilerMojo extends AbstractMojo {
if (!key.startsWith("-")) {
key = "-" + key;
}
- cplrArgsCopy.put(key, value);
+ if (key.startsWith("-A") && StringUtils.isNotEmpty(value)) {
+ cplrArgsCopy.put(key + "=" + value, null);
+ } else {
+ cplrArgsCopy.put(key, value);
+ }
}
}
if (!StringUtils.isEmpty(compilerArgument)) {