public class PluginDescriptorGenerator extends java.lang.Object implements Generator
plugin-help.xml
help content for PluginHelpGenerator
.Modifier and Type | Field and Description |
---|---|
private org.apache.maven.plugin.logging.Log |
log |
Constructor and Description |
---|
PluginDescriptorGenerator(org.apache.maven.plugin.logging.Log log) |
Modifier and Type | Method and Description |
---|---|
void |
execute(java.io.File destinationDirectory,
PluginToolsRequest request)
Execute the generation for a given plugin descriptor.
|
private java.lang.String |
getExpression(org.apache.maven.plugin.descriptor.Parameter parameter)
Get the expression value, eventually surrounding it with
${ } . |
private java.lang.String |
getVersion() |
protected void |
processMojoDescriptor(org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor,
org.codehaus.plexus.util.xml.XMLWriter w) |
protected void |
processMojoDescriptor(org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor,
org.codehaus.plexus.util.xml.XMLWriter w,
boolean helpDescriptor) |
void |
writeDescriptor(java.io.File destinationFile,
PluginToolsRequest request,
boolean helpDescriptor) |
public PluginDescriptorGenerator(org.apache.maven.plugin.logging.Log log)
public void execute(java.io.File destinationDirectory, PluginToolsRequest request) throws GeneratorException
execute
in interface Generator
destinationDirectory
- requiredrequest
- requiredGeneratorException
- if anyprivate java.lang.String getVersion()
public void writeDescriptor(java.io.File destinationFile, PluginToolsRequest request, boolean helpDescriptor) throws java.io.IOException, org.apache.maven.plugin.descriptor.DuplicateMojoDescriptorException
java.io.IOException
org.apache.maven.plugin.descriptor.DuplicateMojoDescriptorException
protected void processMojoDescriptor(org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor, org.codehaus.plexus.util.xml.XMLWriter w)
protected void processMojoDescriptor(org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor, org.codehaus.plexus.util.xml.XMLWriter w, boolean helpDescriptor)
mojoDescriptor
- not nullw
- not nullhelpDescriptor
- will clean html content from description fieldsprivate java.lang.String getExpression(org.apache.maven.plugin.descriptor.Parameter parameter)
${ }
.parameter
- the parameter