maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dfabul...@apache.org
Subject svn commit: r690097 - /maven/plugins/trunk/maven-help-plugin/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java
Date Fri, 29 Aug 2008 04:36:13 GMT
Author: dfabulich
Date: Thu Aug 28 21:36:13 2008
New Revision: 690097

URL: http://svn.apache.org/viewvc?rev=690097&view=rev
Log:
"mvn help:describe -Dcmd=compiler:compile" describes entire plugin, not the specific mojo

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=690097&r1=690096&r2=690097&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
Thu Aug 28 21:36:13 2008
@@ -842,8 +842,9 @@
         // goals
         MojoDescriptor mojoDescriptor = HelpUtil.getMojoDescriptor( cmd, session, project,
cmd, true, false );
 
-        descriptionBuffer.append( "'" + cmd + "' is a plugin" ).append( ".\n" );
+        descriptionBuffer.append( "'" + cmd + "' is a plugin goal (aka mojo)" ).append( ".\n"
);
         plugin = mojoDescriptor.getPluginDescriptor().getId();
+        mojo = mojoDescriptor.getGoal();
 
         return true;
     }



Mime
View raw message