o take car if pluginDescriptor.getName() is unknown

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@690414 13f79535-47bb-0310-9956-ffa450edef68
master
Vincent Siveton 2008-08-29 22:50:34 +00:00
parent 27414b458d
commit aa820b38dc
1 changed files with 12 additions and 3 deletions

View File

@ -434,9 +434,18 @@ public class PluginHelpGenerator
writer.write( " append( sb, \"\", 0 );" + LS );
writer.write( LS );
writer.write( " append( sb, \""
+ StringUtils.escape( pluginDescriptor.getName() + " " + pluginDescriptor.getVersion() )
+ "\", 0 );" + LS );
if ( StringUtils.isNotEmpty( pluginDescriptor.getName() )
&& ( pluginDescriptor.getName().indexOf( pluginDescriptor.getId() ) != -1 ) )
{
writer.write( " append( sb, \""
+ StringUtils.escape( pluginDescriptor.getName() + " " + pluginDescriptor.getVersion() )
+ "\", 0 );" + LS );
}
else
{
writer.write( " append( sb, \"" + StringUtils.escape( pluginDescriptor.getName() ) + "\", 0 );"
+ LS );
}
writer.write( " append( sb, \"" + toDescription( pluginDescriptor.getDescription() ) + "\", 1 );"
+ LS );
writer.write( " append( sb, \"\", 0 );" + LS );