maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1345773 - in /maven/doxia/doxia-tools/trunk/doxia-book-maven-plugin: pom.xml src/main/java/org/apache/maven/doxia/plugin/DoxiaRenderBooksMojo.java
Date Sun, 03 Jun 2012 20:42:42 GMT
Author: hboutemy
Date: Sun Jun  3 20:42:42 2012
New Revision: 1345773

URL: http://svn.apache.org/viewvc?rev=1345773&view=rev
Log:
[DOXIATOOLS-38] use plugin java 5 annotations instead of old-style javadoc annotations

Modified:
    maven/doxia/doxia-tools/trunk/doxia-book-maven-plugin/pom.xml
    maven/doxia/doxia-tools/trunk/doxia-book-maven-plugin/src/main/java/org/apache/maven/doxia/plugin/DoxiaRenderBooksMojo.java

Modified: maven/doxia/doxia-tools/trunk/doxia-book-maven-plugin/pom.xml
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-book-maven-plugin/pom.xml?rev=1345773&r1=1345772&r2=1345773&view=diff
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-book-maven-plugin/pom.xml (original)
+++ maven/doxia/doxia-tools/trunk/doxia-book-maven-plugin/pom.xml Sun Jun  3 20:42:42 2012
@@ -42,7 +42,7 @@ under the License.
   <properties>
     <doxiaVersion>1.3</doxiaVersion>
     <mavenVersion>2.0.6</mavenVersion>
-    <pluginPluginVersion>2.9</pluginPluginVersion>
+    <pluginPluginVersion>3.0</pluginPluginVersion>
   </properties>
 
   <dependencies>
@@ -52,6 +52,11 @@ under the License.
       <version>${mavenVersion}</version>
     </dependency>
     <dependency>
+      <groupId>org.apache.maven.plugin-tools</groupId>
+      <artifactId>maven-plugin-annotations</artifactId>
+      <version>${pluginPluginVersion}</version>
+    </dependency>
+    <dependency>
       <groupId>${project.groupId}</groupId>
       <artifactId>doxia-book-renderer</artifactId>
       <version>1.3-SNAPSHOT</version>

Modified: maven/doxia/doxia-tools/trunk/doxia-book-maven-plugin/src/main/java/org/apache/maven/doxia/plugin/DoxiaRenderBooksMojo.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-book-maven-plugin/src/main/java/org/apache/maven/doxia/plugin/DoxiaRenderBooksMojo.java?rev=1345773&r1=1345772&r2=1345773&view=diff
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-book-maven-plugin/src/main/java/org/apache/maven/doxia/plugin/DoxiaRenderBooksMojo.java
(original)
+++ maven/doxia/doxia-tools/trunk/doxia-book-maven-plugin/src/main/java/org/apache/maven/doxia/plugin/DoxiaRenderBooksMojo.java
Sun Jun  3 20:42:42 2012
@@ -28,6 +28,9 @@ import org.apache.maven.doxia.tools.Site
 import org.apache.maven.plugin.AbstractMojo;
 import org.apache.maven.plugin.MojoExecutionException;
 import org.apache.maven.plugin.MojoFailureException;
+import org.apache.maven.plugins.annotations.Component;
+import org.apache.maven.plugins.annotations.Mojo;
+import org.apache.maven.plugins.annotations.Parameter;
 import org.codehaus.plexus.util.FileUtils;
 import org.codehaus.plexus.util.ReaderFactory;
 import org.codehaus.plexus.util.StringUtils;
@@ -40,11 +43,11 @@ import java.util.Locale;
 /**
  * A Mojo to create books in different output formats.
  *
- * @goal render-books
  * @author <a href="mailto:trygvis@inamo.no">Trygve Laugst&oslash;l</a>
  * @version $Id$
  * @since 1.0
  */
+@Mojo( name = "render-books" )
 public class DoxiaRenderBooksMojo
     extends AbstractMojo
 {
@@ -57,16 +60,14 @@ public class DoxiaRenderBooksMojo
 
     /**
      * BookDoxia component
-     *
-     * @component
      */
+    @Component
     private BookDoxia bookDoxia;
 
     /**
      * SiteTool.
-     *
-     * @component
      */
+    @Component
     protected SiteTool siteTool;
 
     // ----------------------------------------------------------------------
@@ -75,46 +76,39 @@ public class DoxiaRenderBooksMojo
 
     /**
      * A list of books.
-     *
-     * @parameter
-     * @required
      */
+    @Parameter( required = true )
     private List<Book> books;
 
     /**
      * Base directory of the project.
-     *
-     * @parameter default-value="${basedir}"
      */
+    @Parameter( defaultValue = "${basedir}", readonly = true )
     private File basedir;
 
     /**
      * Directory containing the generated project docs.
-     *
-     * @parameter default-value="${project.build.directory}/generated-site"
      */
+    @Parameter( defaultValue = "${project.build.directory}/generated-site" )
     private File generatedDocs;
 
     /**
      * A comma separated list of locales supported by Maven. The first valid token will be
the default Locale
      * for this instance of the Java Virtual Machine.
-     *
-     * @parameter default-value="${locales}"
      */
+    @Parameter( defaultValue = "${locales}" )
     protected String locales;
 
     /**
      * Specifies the input encoding.
-     *
-     * @parameter expression="${encoding}" default-value="${project.build.sourceEncoding}"
      */
+    @Parameter( property = "encoding", defaultValue = "${project.build.sourceEncoding}" )
     private String inputEncoding;
 
     /**
      * Specifies the output encoding.
-     *
-     * @parameter expression="${outputEncoding}" default-value="${project.reporting.outputEncoding}"
      */
+    @Parameter( property = "outputEncoding", defaultValue = "${project.reporting.outputEncoding}"
)
     private String outputEncoding;
 
     // ----------------------------------------------------------------------



Mime
View raw message