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-ffa450edef68master
parent
e14d6818b1
commit
e4a1c9311d
|
|
@ -350,9 +350,16 @@ public class PluginDescriptorGenerator
|
||||||
PluginUtils.element( w, "type", parameter.getType() );
|
PluginUtils.element( w, "type", parameter.getType() );
|
||||||
|
|
||||||
if ( parameter.getDeprecated() != null )
|
if ( parameter.getDeprecated() != null )
|
||||||
|
{
|
||||||
|
if ( StringUtils.isEmpty( parameter.getDeprecated() ) )
|
||||||
|
{
|
||||||
|
PluginUtils.element( w, "deprecated", "No reason given" );
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
PluginUtils.element( w, "deprecated", parameter.getDeprecated() );
|
PluginUtils.element( w, "deprecated", parameter.getDeprecated() );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ( parameter.getImplementation() != null )
|
if ( parameter.getImplementation() != null )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue