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-ffa450edef68
master
Vincent Siveton 2008-08-29 22:53:35 +00:00
parent aa820b38dc
commit 5639cdc491
1 changed files with 10 additions and 2 deletions

View File

@ -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 );