[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-ffa450edef68master
parent
c5c948dc4f
commit
b431a45cbe
|
|
@ -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.";
|
||||
|
|
|
|||
Loading…
Reference in New Issue