org.apache.maven.tools.plugin.generator
Class PluginDescriptorGenerator
java.lang.Object
org.apache.maven.tools.plugin.generator.PluginDescriptorGenerator
- All Implemented Interfaces:
- Generator
public class PluginDescriptorGenerator
- extends Object
- implements Generator
Generate a Maven Plugin Descriptor XML file and
corresponding help content.
- Version:
- $Id: PluginDescriptorGenerator.java 1343173 2012-05-28 09:30:23Z hboutemy $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PluginDescriptorGenerator
public PluginDescriptorGenerator()
execute
public void execute(File destinationDirectory,
PluginToolsRequest request)
throws GeneratorException
- Execute the generation for a given plugin descriptor.
- Specified by:
execute
in interface Generator
- Parameters:
destinationDirectory
- requiredrequest
- required
- Throws:
GeneratorException
writeDescriptor
public void writeDescriptor(File destinationFile,
PluginToolsRequest request,
boolean helpDescriptor)
throws IOException,
org.apache.maven.plugin.descriptor.DuplicateMojoDescriptorException
- Throws:
IOException
org.apache.maven.plugin.descriptor.DuplicateMojoDescriptorException
processMojoDescriptor
protected void processMojoDescriptor(org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor,
org.codehaus.plexus.util.xml.XMLWriter w)
processMojoDescriptor
protected void processMojoDescriptor(org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor,
org.codehaus.plexus.util.xml.XMLWriter w,
boolean helpDescriptor)
- Parameters:
mojoDescriptor
- not nullw
- not nullhelpDescriptor
- will clean html content from description fields
rewriteHelpClassToMojoPackage
protected String rewriteHelpClassToMojoPackage(PluginToolsRequest request)
throws GeneratorException
- Throws:
GeneratorException
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.