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 correspondingplugin-help.xmlhelp content forPluginHelpGenerator.
-
-
Constructor Summary
Constructors Constructor Description PluginDescriptorGenerator(org.apache.maven.plugin.logging.Log log)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(File destinationDirectory, PluginToolsRequest request)Execute the generation for a given plugin descriptor.protected voidprocessMojoDescriptor(org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor, org.codehaus.plexus.util.xml.XMLWriter w)protected voidprocessMojoDescriptor(org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor, org.codehaus.plexus.util.xml.XMLWriter w, boolean helpDescriptor)voidwriteDescriptor(File destinationFile, PluginToolsRequest request, boolean helpDescriptor)
-
-
-
Method Detail
-
execute
public void execute(File destinationDirectory, PluginToolsRequest request) throws GeneratorException
Execute the generation for a given plugin descriptor.- Specified by:
executein interfaceGenerator- Parameters:
destinationDirectory- requiredrequest- required- Throws:
GeneratorException- if any
-
writeDescriptor
public void writeDescriptor(File destinationFile, PluginToolsRequest request, boolean helpDescriptor) throws IOException, org.apache.maven.plugin.descriptor.DuplicateMojoDescriptorException
- Throws:
IOExceptionorg.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
-
-