[MPLUGIN-99] Do not document help goal twice

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@654754 13f79535-47bb-0310-9956-ffa450edef68
master
Benjamin Bentmann 2008-05-09 11:04:48 +00:00
parent c5c948dc4f
commit b431a45cbe
1 changed files with 6 additions and 0 deletions

View File

@ -296,6 +296,12 @@ public class PluginHelpGenerator
{
MojoDescriptor descriptor = (MojoDescriptor) it.next();
if ( getHelpGoalName().equals( descriptor.getGoal() ) )
{
// don't document help goal twice
continue;
}
String goal = descriptor.getFullGoalName();
String description = StringUtils.isNotEmpty( descriptor.getDescription() ) ?
StringUtils.escape( toText( descriptor.getDescription() ) ) : "No description available.";