o take car if pluginDescriptor.getName() is unknown
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@690415 13f79535-47bb-0310-9956-ffa450edef68master
parent
aa820b38dc
commit
5639cdc491
|
|
@ -443,8 +443,16 @@ public class PluginHelpGenerator
|
|||
}
|
||||
else
|
||||
{
|
||||
writer.write( " append( sb, \"" + StringUtils.escape( pluginDescriptor.getName() ) + "\", 0 );"
|
||||
+ LS );
|
||||
if ( StringUtils.isNotEmpty( pluginDescriptor.getName() ) )
|
||||
{
|
||||
writer.write( " append( sb, \"" + StringUtils.escape( pluginDescriptor.getName() )
|
||||
+ "\", 0 );" + LS );
|
||||
}
|
||||
else
|
||||
{
|
||||
writer.write( " append( sb, \"" + StringUtils.escape( pluginDescriptor.getId() )
|
||||
+ "\", 0 );" + LS );
|
||||
}
|
||||
}
|
||||
writer.write( " append( sb, \"" + toDescription( pluginDescriptor.getDescription() ) + "\", 1 );"
|
||||
+ LS );
|
||||
|
|
|
|||
Loading…
Reference in New Issue