MPLUGIN-71: Make JavaMojoDescriptorExtractor extract class-level deprecated tag

Submitted by: Benjamin Bentmann
Reviewed by: Vincent Siveton

o applied

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@620120 13f79535-47bb-0310-9956-ffa450edef68
master
Vincent Siveton 2008-02-09 14:10:29 +00:00
parent da2a058a67
commit 99f6b964ab
1 changed files with 11 additions and 0 deletions

View File

@ -223,6 +223,17 @@ public class JavaMojoDescriptorExtractor
mojoDescriptor.setSince( since.getValue() );
}
// ----------------------------------------------------------------------
// Deprecation hint
// ----------------------------------------------------------------------
DocletTag deprecated = javaClass.getTagByName( DEPRECATED );
if ( deprecated != null )
{
mojoDescriptor.setDeprecated( deprecated.getValue() );
}
// ----------------------------------------------------------------------
// Phase name
// ----------------------------------------------------------------------