Class PluginDescriptorGenerator
java.lang.Object
org.apache.maven.tools.plugin.generator.PluginDescriptorGenerator
- All Implemented Interfaces:
Generator
Generate a Maven Plugin Descriptor XML file and
corresponding
plugin-help.xml help content for PluginHelpGenerator.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(File destinationDirectory, PluginToolsRequest request) Execute the generation for a given plugin descriptor.private StringgetExpression(org.apache.maven.plugin.descriptor.Parameter parameter) Get the expression value, eventually surrounding it with${ }.private Stringprotected 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)
-
Field Details
-
log
private final org.apache.maven.plugin.logging.Log log
-
-
Constructor Details
-
PluginDescriptorGenerator
public PluginDescriptorGenerator(org.apache.maven.plugin.logging.Log log)
-
-
Method Details
-
execute
public void execute(File destinationDirectory, PluginToolsRequest request) throws GeneratorException Description copied from interface:GeneratorExecute the generation for a given plugin descriptor.- Specified by:
executein interfaceGenerator- Parameters:
destinationDirectory- requiredrequest- required- Throws:
GeneratorException- if any
-
getVersion
-
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
-
getExpression
Get the expression value, eventually surrounding it with${ }.- Parameters:
parameter- the parameter- Returns:
- the expression value
-