code simplification
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1354250 13f79535-47bb-0310-9956-ffa450edef68master
parent
af47cb96c6
commit
c312cac3bb
|
|
@ -107,22 +107,20 @@ public class PluginHelpGenerator
|
|||
if ( mojoDescriptors != null )
|
||||
{
|
||||
// Verify that no help goal already exists
|
||||
for ( MojoDescriptor descriptor : mojoDescriptors )
|
||||
{
|
||||
if ( HELP_GOAL.equals( descriptor.getGoal() )
|
||||
&& !descriptor.getImplementation().equals( helpImplementation ) )
|
||||
MojoDescriptor descriptor = pluginDescriptor.getMojo( HELP_GOAL );
|
||||
|
||||
if ( ( descriptor != null ) && !descriptor.getImplementation().equals( helpImplementation ) )
|
||||
{
|
||||
if ( getLogger().isWarnEnabled() )
|
||||
{
|
||||
getLogger().warn( "\n\nA help goal (" + descriptor.getImplementation()
|
||||
+ ") already exists in this plugin. SKIPPED THE "
|
||||
+ helpImplementation + " GENERATION.\n" );
|
||||
+ ") already exists in this plugin. SKIPPED THE " + helpImplementation
|
||||
+ " GENERATION.\n" );
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
writeHelpPropertiesFile( request );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue