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/30 13:01:20 UTC
svn commit: r690490 -
/maven/plugins/trunk/maven-help-plugin/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java
Author: vsiveton
Date: Sat Aug 30 04:01:19 2008
New Revision: 690490
URL: http://svn.apache.org/viewvc?rev=690490&view=rev
Log:
MPH-51: "help:help -Ddetail" looks better than "help:describe -Dplugin=help -Dfull"
o list goals a la help:help
o improved Deprecated msg
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=690490&r1=690489&r2=690490&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 Sat Aug 30 04:01:19 2008
@@ -55,7 +55,6 @@
import org.apache.maven.project.ProjectBuildingException;
import org.apache.maven.settings.Settings;
import org.apache.maven.tools.plugin.util.PluginUtils;
-import org.codehaus.plexus.component.repository.ComponentRequirement;
import org.codehaus.plexus.component.repository.exception.ComponentLookupException;
import org.codehaus.plexus.configuration.PlexusConfigurationException;
import org.codehaus.plexus.util.StringUtils;
@@ -597,16 +596,15 @@
private void describeMojoGuts( MojoDescriptor md, StringBuffer buffer, boolean fullDescription )
throws MojoFailureException, MojoExecutionException
{
- append( buffer, "Goal", "'" + md.getGoal() + "'", 0 );
+ append( buffer, md.getFullGoalName(), 0 );
// indent 1
- append( buffer, "Full Goal Name", "'" + md.getFullGoalName() + "'", 1 );
appendAsParagraph( buffer, "Description", toDescription( md.getDescription() ), 1 );
String deprecation = md.getDeprecated();
if ( StringUtils.isNotEmpty( deprecation ) )
{
- append( buffer, "NOTE: This mojo is deprecated. " + deprecation, 1 );
+ append( buffer, "Deprecated. " + deprecation, 1 );
}
if ( !fullDescription )
@@ -738,7 +736,7 @@
String deprecation = parameter.getDeprecated();
if ( StringUtils.isNotEmpty( deprecation ) )
{
- append( buffer, "NOTE: This parameter is deprecated." + deprecation, 3 );
+ append( buffer, "Deprecated." + deprecation, 3 );
}
}
}