commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1309927 - in /commons/proper/digester/trunk/annotations-processor: pom.xml src/main/java/org/apache/commons/digester3/annotations/processor/DigesterAnnotationsProcessor.java
Date Thu, 05 Apr 2012 16:27:41 GMT
Author: simonetripodi
Date: Thu Apr  5 16:27:40 2012
New Revision: 1309927

URL: http://svn.apache.org/viewvc?rev=1309927&view=rev
Log:
added the META-INF/services generator to let javac discover the DigesterAnnotationsProcessor

Modified:
    commons/proper/digester/trunk/annotations-processor/pom.xml
    commons/proper/digester/trunk/annotations-processor/src/main/java/org/apache/commons/digester3/annotations/processor/DigesterAnnotationsProcessor.java

Modified: commons/proper/digester/trunk/annotations-processor/pom.xml
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/annotations-processor/pom.xml?rev=1309927&r1=1309926&r2=1309927&view=diff
==============================================================================
--- commons/proper/digester/trunk/annotations-processor/pom.xml (original)
+++ commons/proper/digester/trunk/annotations-processor/pom.xml Thu Apr  5 16:27:40 2012
@@ -44,7 +44,16 @@
       <groupId>com.sun.codemodel</groupId>
       <artifactId>codemodel</artifactId>
       <version>2.6</version>
+      <scope>compile</scope>
     </dependency>
+
+    <dependency>
+      <groupId>org.kohsuke.metainf-services</groupId>
+      <artifactId>metainf-services</artifactId>
+      <version>1.3</version>
+      <scope>provided</scope>
+    </dependency>
+
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>

Modified: commons/proper/digester/trunk/annotations-processor/src/main/java/org/apache/commons/digester3/annotations/processor/DigesterAnnotationsProcessor.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/annotations-processor/src/main/java/org/apache/commons/digester3/annotations/processor/DigesterAnnotationsProcessor.java?rev=1309927&r1=1309926&r2=1309927&view=diff
==============================================================================
--- commons/proper/digester/trunk/annotations-processor/src/main/java/org/apache/commons/digester3/annotations/processor/DigesterAnnotationsProcessor.java
(original)
+++ commons/proper/digester/trunk/annotations-processor/src/main/java/org/apache/commons/digester3/annotations/processor/DigesterAnnotationsProcessor.java
Thu Apr  5 16:27:40 2012
@@ -36,6 +36,7 @@ import java.util.Set;
 
 import javax.annotation.processing.AbstractProcessor;
 import javax.annotation.processing.Messager;
+import javax.annotation.processing.Processor;
 import javax.annotation.processing.RoundEnvironment;
 import javax.lang.model.element.Element;
 import javax.lang.model.element.TypeElement;
@@ -51,6 +52,7 @@ import org.apache.commons.digester3.anno
 import org.apache.commons.digester3.annotations.rules.SetProperty;
 import org.apache.commons.digester3.annotations.rules.SetRoot;
 import org.apache.commons.digester3.annotations.rules.SetTop;
+import org.kohsuke.MetaInfServices;
 
 import com.sun.codemodel.JClassAlreadyExistsException;
 import com.sun.codemodel.JCodeModel;
@@ -61,6 +63,7 @@ import com.sun.codemodel.JPackage;
 /**
  * @since 3.3
  */
+@MetaInfServices( Processor.class )
 public class DigesterAnnotationsProcessor
     extends AbstractProcessor
 {



Mime
View raw message