You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by vs...@apache.org on 2008/08/29 13:48:45 UTC

svn commit: r690195 - /maven/plugins/trunk/maven-help-plugin/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java

Author: vsiveton
Date: Fri Aug 29 04:48:44 2008
New Revision: 690195

URL: http://svn.apache.org/viewvc?rev=690195&view=rev
Log:
MPH-33: Help plugin should refer to "goal" not "mojo"

o improved javadoc

Modified:
    maven/plugins/trunk/maven-help-plugin/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java

Modified: maven/plugins/trunk/maven-help-plugin/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-help-plugin/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java?rev=690195&r1=690194&r2=690195&view=diff
==============================================================================
--- maven/plugins/trunk/maven-help-plugin/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java (original)
+++ maven/plugins/trunk/maven-help-plugin/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java Fri Aug 29 04:48:44 2008
@@ -184,14 +184,16 @@
      * If this parameter is specified, only the corresponding Mojo (goal) will be described,
      * rather than the whole Plugin.
      *
-     * @parameter expression="${goal}"
+     * @parameter expression="${goal}" alias="mojo"
+     * @since 2.1
      */
     private String goal;
 
     /**
      * This flag specifies that a full (verbose) list of Mojo informations should be given.
      *
-     * @parameter expression="${detail}" default-value="false"
+     * @parameter expression="${detail}" default-value="false" alias="full"
+     * @since 2.1
      */
     private boolean detail;
 
@@ -290,7 +292,7 @@
         if ( !detail && session.getExecutionProperties().get( "full" ) != null )
         {
             String full = session.getExecutionProperties().getProperty( "full" );
-            detail = Boolean.getBoolean( full );
+            detail = new Boolean( full ).booleanValue();
         }
 
         if ( detail || minimal )