You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by br...@apache.org on 2005/10/15 14:48:24 UTC

svn commit: r321325 - /maven/components/trunk/maven-plugins/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/AbstractCompilerMojo.java

Author: brett
Date: Sat Oct 15 05:48:20 2005
New Revision: 321325

URL: http://svn.apache.org/viewcvs?rev=321325&view=rev
Log:
PR: MNG-862
Submitted by: Rod Coffin
don't force a particular implementation of Map on configuration

Modified:
    maven/components/trunk/maven-plugins/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/AbstractCompilerMojo.java

Modified: maven/components/trunk/maven-plugins/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/AbstractCompilerMojo.java
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-plugins/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/AbstractCompilerMojo.java?rev=321325&r1=321324&r2=321325&view=diff
==============================================================================
--- maven/components/trunk/maven-plugins/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/AbstractCompilerMojo.java (original)
+++ maven/components/trunk/maven-plugins/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/AbstractCompilerMojo.java Sat Oct 15 05:48:20 2005
@@ -35,6 +35,7 @@
 import java.util.Iterator;
 import java.util.LinkedHashMap;
 import java.util.List;
+import java.util.Map;
 import java.util.Set;
 
 /**
@@ -157,7 +158,7 @@
      *
      * @parameter
      */
-    private LinkedHashMap compilerArguments;
+    private Map compilerArguments;
 
     /**
      * Used to control the name of the output file when compiling a set of
@@ -276,7 +277,8 @@
 
         compilerConfiguration.setSourceEncoding( encoding );
 
-        compilerConfiguration.setCustomCompilerArguments( compilerArguments );
+        compilerConfiguration
+            .setCustomCompilerArguments( compilerArguments == null ? null : new LinkedHashMap( compilerArguments ) );
 
         compilerConfiguration.setFork( fork );