o be sure that deprecated tag for parameter is not empty

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@690503 13f79535-47bb-0310-9956-ffa450edef68
master
Vincent Siveton 2008-08-30 13:39:27 +00:00
parent e14d6818b1
commit e4a1c9311d
1 changed files with 8 additions and 1 deletions

View File

@ -350,9 +350,16 @@ public class PluginDescriptorGenerator
PluginUtils.element( w, "type", parameter.getType() );
if ( parameter.getDeprecated() != null )
{
if ( StringUtils.isEmpty( parameter.getDeprecated() ) )
{
PluginUtils.element( w, "deprecated", "No reason given" );
}
else
{
PluginUtils.element( w, "deprecated", parameter.getDeprecated() );
}
}
if ( parameter.getImplementation() != null )
{