Author: mkleint
Date: Wed Feb 24 10:38:25 2010
New Revision: 915743

URL: http://svn.apache.org/viewvc?rev=915743&view=rev
Log:
MCOMPILER-75 add jdk 1.6 annotation processing parameter -processor handling

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

Modified: 
maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/AbstractCompilerMojo.java
URL: 
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/AbstractCompilerMojo.java?rev=915743&r1=915742&r2=915743&view=diff
==============================================================================
--- 
maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/AbstractCompilerMojo.java
 (original)
+++ 
maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/AbstractCompilerMojo.java
 Wed Feb 24 10:38:25 2010
@@ -21,9 +21,7 @@
 
 import java.io.File;
 import java.util.ArrayList;
-import java.util.Arrays;
 import java.util.HashSet;
-import java.util.Iterator;
 import java.util.LinkedHashMap;
 import java.util.List;
 import java.util.Map;
@@ -203,6 +201,17 @@
 
     /**
      * <p>
+     *  Names of annotation processors to run. Only applies to JDK 1.6+
+     * If not set, the default annotation processors discovery process applies.
+     * </p>
+     *
+     * @parameter
+     * @since 2.2
+     */
+    private String[] annotationProcessors;
+
+    /**
+     * <p>
      * Sets the arguments to be passed to the compiler (prepending a dash) if 
fork is set to true.
      * </p>
      * <p>
@@ -408,10 +417,12 @@
 
         compilerConfiguration.setTargetVersion( getTarget() );
 
-        compilerConfiguration.setProc(proc);
+        compilerConfiguration.setProc( proc );
 
         compilerConfiguration.setGeneratedSourcesDirectory( 
getGeneratedSourcesDirectory() );
 
+        compilerConfiguration.setAnnotationProcessors( annotationProcessors );
+
         compilerConfiguration.setSourceEncoding( encoding );
         
         Map<String, String> effectiveCompilerArguments = 
getCompilerArguments();


Reply via email to