Class PluginDescriptorFilesGenerator
- java.lang.Object
-
- org.apache.maven.tools.plugin.generator.PluginDescriptorFilesGenerator
-
- All Implemented Interfaces:
Generator
public class PluginDescriptorFilesGenerator extends Object implements Generator
Serializes- a standard Maven Plugin Descriptor XML file
- a descriptor containing a limited set of elements for
PluginHelpGenerator
- an enhanced descriptor containing HTML values for some elements (instead of plain text as for the other two)
for
org.apache.maven.plugin.plugin.report.GoalRenderer
-
-
Constructor Summary
Constructors Constructor Description PluginDescriptorFilesGenerator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(File destinationDirectory, PluginToolsRequest request)
Execute the generation for a given plugin descriptor.static File
getEnhancedDescriptorFilePath(org.apache.maven.project.MavenProject project)
protected void
processMojoDescriptor(org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor, org.codehaus.plexus.util.xml.XMLWriter w, org.apache.maven.tools.plugin.generator.PluginDescriptorFilesGenerator.DescriptorType type, JavadocLinkGenerator javadocLinkGenerator)
void
writeDescriptor(File destinationFile, PluginToolsRequest request, org.apache.maven.tools.plugin.generator.PluginDescriptorFilesGenerator.DescriptorType type)
protected void
writeParameterType(org.codehaus.plexus.util.xml.XMLWriter w, org.apache.maven.tools.plugin.generator.PluginDescriptorFilesGenerator.DescriptorType type, JavadocLinkGenerator javadocLinkGenerator, org.apache.maven.plugin.descriptor.Parameter parameter, String goal)
Writes parameter type information and potentially also the related javadoc URL.
-
-
-
Constructor Detail
-
PluginDescriptorFilesGenerator
public PluginDescriptorFilesGenerator()
-
-
Method Detail
-
execute
public void execute(File destinationDirectory, PluginToolsRequest request) throws GeneratorException
Description copied from interface:Generator
Execute the generation for a given plugin descriptor.- Specified by:
execute
in interfaceGenerator
- Parameters:
destinationDirectory
- requiredrequest
- required- Throws:
GeneratorException
- if any
-
getEnhancedDescriptorFilePath
public static File getEnhancedDescriptorFilePath(org.apache.maven.project.MavenProject project)
-
writeDescriptor
public void writeDescriptor(File destinationFile, PluginToolsRequest request, org.apache.maven.tools.plugin.generator.PluginDescriptorFilesGenerator.DescriptorType type) throws IOException
- Throws:
IOException
-
processMojoDescriptor
protected void processMojoDescriptor(org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor, org.codehaus.plexus.util.xml.XMLWriter w, org.apache.maven.tools.plugin.generator.PluginDescriptorFilesGenerator.DescriptorType type, JavadocLinkGenerator javadocLinkGenerator)
-
writeParameterType
protected void writeParameterType(org.codehaus.plexus.util.xml.XMLWriter w, org.apache.maven.tools.plugin.generator.PluginDescriptorFilesGenerator.DescriptorType type, JavadocLinkGenerator javadocLinkGenerator, org.apache.maven.plugin.descriptor.Parameter parameter, String goal)
Writes parameter type information and potentially also the related javadoc URL.- Parameters:
w
-type
-javadocLinkGenerator
-parameter
-goal
-
-
-