You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2012/07/18 22:18:42 UTC

svn commit: r1363094 - in /maven/plugins/trunk/maven-checkstyle-plugin: ./ src/main/java/org/apache/maven/plugin/checkstyle/ src/main/java/org/apache/maven/plugin/checkstyle/rss/

Author: hboutemy
Date: Wed Jul 18 20:18:42 2012
New Revision: 1363094

URL: http://svn.apache.org/viewvc?rev=1363094&view=rev
Log:
[MCHECKSTYLE-179] use plexus java 5 annotations instead of old-style javadoc annotations

Modified:
    maven/plugins/trunk/maven-checkstyle-plugin/pom.xml
    maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/DefaultCheckstyleExecutor.java
    maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/rss/CheckstyleRssGenerator.java
    maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/rss/CheckstyleRssGeneratorRequest.java
    maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/rss/DefaultCheckstyleRssGenerator.java

Modified: maven/plugins/trunk/maven-checkstyle-plugin/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-checkstyle-plugin/pom.xml?rev=1363094&r1=1363093&r2=1363094&view=diff
==============================================================================
--- maven/plugins/trunk/maven-checkstyle-plugin/pom.xml (original)
+++ maven/plugins/trunk/maven-checkstyle-plugin/pom.xml Wed Jul 18 20:18:42 2012
@@ -147,6 +147,10 @@ under the License.
     </dependency>
     <dependency>
       <groupId>org.codehaus.plexus</groupId>
+      <artifactId>plexus-component-annotations</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.codehaus.plexus</groupId>
       <artifactId>plexus-resources</artifactId>
       <version>1.0-alpha-7</version>
     </dependency>

Modified: maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/DefaultCheckstyleExecutor.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/DefaultCheckstyleExecutor.java?rev=1363094&r1=1363093&r2=1363094&view=diff
==============================================================================
--- maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/DefaultCheckstyleExecutor.java (original)
+++ maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/DefaultCheckstyleExecutor.java Wed Jul 18 20:18:42 2012
@@ -34,6 +34,8 @@ import java.util.Properties;
 import org.apache.commons.io.IOUtils;
 import org.apache.maven.artifact.DependencyResolutionRequiredException;
 import org.apache.maven.project.MavenProject;
+import org.codehaus.plexus.component.annotations.Component;
+import org.codehaus.plexus.component.annotations.Requirement;
 import org.codehaus.plexus.logging.AbstractLogEnabled;
 import org.codehaus.plexus.resource.ResourceManager;
 import org.codehaus.plexus.resource.loader.FileResourceCreationException;
@@ -55,19 +57,15 @@ import com.puppycrawl.tools.checkstyle.f
 
 /**
  * @author <a href="mailto:olamy@apache.org">olamy</a>
- * @plexus.component role="org.apache.maven.plugin.checkstyle.CheckstyleExecutor" role-hint="default"
- *                   instantiation-strategy="per-lookup"
  * @since 2.5
  * @version $Id$
  */
+@Component( role = CheckstyleExecutor.class, hint = "default", instantiationStrategy = "per-lookup" )
 public class DefaultCheckstyleExecutor
     extends AbstractLogEnabled
     implements CheckstyleExecutor
 {
-
-    /**
-     * @plexus.requirement role="org.codehaus.plexus.resource.ResourceManager" role-hint="default"
-     */
+    @Requirement
     private ResourceManager locator;
 
     private static final File[] EMPTY_FILE_ARRAY = new File[0];

Modified: maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/rss/CheckstyleRssGenerator.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/rss/CheckstyleRssGenerator.java?rev=1363094&r1=1363093&r2=1363094&view=diff
==============================================================================
--- maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/rss/CheckstyleRssGenerator.java (original)
+++ maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/rss/CheckstyleRssGenerator.java Wed Jul 18 20:18:42 2012
@@ -22,12 +22,9 @@ package org.apache.maven.plugin.checksty
 import org.apache.maven.plugin.checkstyle.CheckstyleResults;
 import org.apache.maven.reporting.MavenReportException;
 
-
-
 /**
  * @author Olivier Lamy
  * @since 2.4
- *
  */
 public interface CheckstyleRssGenerator
 {

Modified: maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/rss/CheckstyleRssGeneratorRequest.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/rss/CheckstyleRssGeneratorRequest.java?rev=1363094&r1=1363093&r2=1363094&view=diff
==============================================================================
--- maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/rss/CheckstyleRssGeneratorRequest.java (original)
+++ maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/rss/CheckstyleRssGeneratorRequest.java Wed Jul 18 20:18:42 2012
@@ -24,11 +24,9 @@ import java.io.File;
 import org.apache.maven.plugin.logging.Log;
 import org.apache.maven.project.MavenProject;
 
-
 /**
  * @author Olivier Lamy
  * @since 2.4
- *
  */
 public class CheckstyleRssGeneratorRequest
 {

Modified: maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/rss/DefaultCheckstyleRssGenerator.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/rss/DefaultCheckstyleRssGenerator.java?rev=1363094&r1=1363093&r2=1363094&view=diff
==============================================================================
--- maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/rss/DefaultCheckstyleRssGenerator.java (original)
+++ maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/rss/DefaultCheckstyleRssGenerator.java Wed Jul 18 20:18:42 2012
@@ -30,6 +30,8 @@ import org.apache.velocity.VelocityConte
 import org.apache.velocity.context.Context;
 import org.apache.velocity.exception.ResourceNotFoundException;
 import org.apache.velocity.exception.VelocityException;
+import org.codehaus.plexus.component.annotations.Component;
+import org.codehaus.plexus.component.annotations.Requirement;
 import org.codehaus.plexus.util.StringUtils;
 import org.codehaus.plexus.velocity.VelocityComponent;
 
@@ -38,19 +40,14 @@ import com.puppycrawl.tools.checkstyle.a
 /**
  * @author Olivier Lamy
  * @since 2.4
- * @plexus.component role="org.apache.maven.plugin.checkstyle.rss.CheckstyleRssGenerator"
- *                   role-hint="default"
  */
+@Component( role = CheckstyleRssGenerator.class, hint = "default" )
 public class DefaultCheckstyleRssGenerator
     implements CheckstyleRssGenerator
 {
-   
-    /**
-     * @plexus.requirement
-     */
+    @Requirement
     private VelocityComponent velocityComponent;
 
-    
     /**
      * @see org.apache.maven.plugin.checkstyle.rss.CheckstyleRssGenerator#generateRSS(org.apache.maven.plugin.checkstyle.CheckstyleResults)
      */