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-ffa450edef68
master
Vincent Siveton 2008-08-08 14:52:32 +00:00
parent 2f241ee5e4
commit e834ade9d1
1 changed files with 20 additions and 0 deletions

View File

@ -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
// ----------------------------------------------------------------------