Fixing some missing descriptor description fields.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@315026 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
John Dennis Casey 2005-10-12 20:22:36 +00:00
parent 856fc889df
commit 7df3803ef7
2 changed files with 18 additions and 1 deletions

View File

@ -63,6 +63,8 @@ public void execute( File destinationDirectory, PluginDescriptor pluginDescripto
w.startElement( "plugin" );
element( w, "description", pluginDescriptor.getDescription() );
element( w, "groupId", pluginDescriptor.getGroupId() );
element( w, "artifactId", pluginDescriptor.getArtifactId() );
@ -118,6 +120,21 @@ protected void processMojoDescriptor( MojoDescriptor mojoDescriptor, XMLWriter w
//
// ----------------------------------------------------------------------
String description = mojoDescriptor.getDescription();
if ( description != null )
{
w.startElement( "description" );
w.writeText( mojoDescriptor.getDescription() );
w.endElement();
}
// ----------------------------------------------------------------------
//
// ----------------------------------------------------------------------
if ( mojoDescriptor.isDependencyResolutionRequired() != null )
{
element( w, "requiresDependencyResolution", mojoDescriptor.isDependencyResolutionRequired() );