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

@ -351,7 +351,14 @@ public class PluginDescriptorGenerator
if ( parameter.getDeprecated() != null )
{
PluginUtils.element( w, "deprecated", parameter.getDeprecated() );
if ( StringUtils.isEmpty( parameter.getDeprecated() ) )
{
PluginUtils.element( w, "deprecated", "No reason given" );
}
else
{
PluginUtils.element( w, "deprecated", parameter.getDeprecated() );
}
}
if ( parameter.getImplementation() != null )