MPLUGIN-130: PluginDescriptorGenerator doesn't write deprecated tag for a mojo
o added deprecated tag git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@683987 13f79535-47bb-0310-9956-ffa450edef68master
parent
2f241ee5e4
commit
e834ade9d1
|
|
@ -280,6 +280,26 @@ public class PluginDescriptorGenerator
|
|||
|
||||
w.endElement();
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
if ( mojoDescriptor.getDeprecated() != null )
|
||||
{
|
||||
w.startElement( "deprecated" );
|
||||
|
||||
if ( StringUtils.isEmpty( mojoDescriptor.getDeprecated() ) )
|
||||
{
|
||||
w.writeText( "No reason given" );
|
||||
}
|
||||
else
|
||||
{
|
||||
w.writeText( mojoDescriptor.getDeprecated() );
|
||||
}
|
||||
|
||||
w.endElement();
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
// Parameters
|
||||
// ----------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Reference in New Issue