maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bentm...@apache.org
Subject svn commit: r940009 - in /maven/plugin-tools/trunk/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin: AbstractGeneratorMojo.java metadata/AddPluginArtifactMetadataMojo.java
Date Sat, 01 May 2010 13:32:38 GMT
Author: bentmann
Date: Sat May  1 13:32:37 2010
New Revision: 940009

URL: http://svn.apache.org/viewvc?rev=940009&view=rev
Log:
o Polished code

Modified:
    maven/plugin-tools/trunk/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/AbstractGeneratorMojo.java
    maven/plugin-tools/trunk/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/metadata/AddPluginArtifactMetadataMojo.java

Modified: maven/plugin-tools/trunk/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/AbstractGeneratorMojo.java
URL: http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/AbstractGeneratorMojo.java?rev=940009&r1=940008&r2=940009&view=diff
==============================================================================
--- maven/plugin-tools/trunk/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/AbstractGeneratorMojo.java
(original)
+++ maven/plugin-tools/trunk/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/AbstractGeneratorMojo.java
Sat May  1 13:32:37 2010
@@ -48,7 +48,7 @@ public abstract class AbstractGeneratorM
     /**
      * The project currently being built.
      *
-     * @parameter expression="${project}"
+     * @parameter default-value="${project}"
      * @required
      * @readonly
      */
@@ -118,7 +118,7 @@ public abstract class AbstractGeneratorM
     public void execute()
         throws MojoExecutionException
     {
-        if ( !project.getPackaging().equals( "maven-plugin" ) )
+        if ( !"maven-plugin".equals( project.getPackaging() ) )
         {
             return;
         }

Modified: maven/plugin-tools/trunk/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/metadata/AddPluginArtifactMetadataMojo.java
URL: http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/metadata/AddPluginArtifactMetadataMojo.java?rev=940009&r1=940008&r2=940009&view=diff
==============================================================================
--- maven/plugin-tools/trunk/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/metadata/AddPluginArtifactMetadataMojo.java
(original)
+++ maven/plugin-tools/trunk/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/metadata/AddPluginArtifactMetadataMojo.java
Sat May  1 13:32:37 2010
@@ -44,7 +44,7 @@ public class AddPluginArtifactMetadataMo
     /**
      * The project artifact, which should have the LATEST metadata added to it.
      *
-     * @parameter expression="${project}"
+     * @parameter default-value="${project}"
      * @required
      * @readonly
      */



Mime
View raw message