Class PluginDescriptorFilesGenerator
java.lang.Object
org.apache.maven.tools.plugin.generator.PluginDescriptorFilesGenerator
- All Implemented Interfaces:
- 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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidexecute(File destinationDirectory, PluginToolsRequest request) Execute the generation for a given plugin descriptor.static FilegetEnhancedDescriptorFilePath(org.apache.maven.project.MavenProject project) protected voidprocessMojoDescriptor(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) voidwriteDescriptor(File destinationFile, PluginToolsRequest request, org.apache.maven.tools.plugin.generator.PluginDescriptorFilesGenerator.DescriptorType type) protected voidwriteParameterType(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 Details- 
PluginDescriptorFilesGeneratorpublic PluginDescriptorFilesGenerator()
 
- 
- 
Method Details- 
executepublic void execute(File destinationDirectory, PluginToolsRequest request) throws GeneratorException Description copied from interface:GeneratorExecute the generation for a given plugin descriptor.- Specified by:
- executein interface- Generator
- Parameters:
- destinationDirectory- required
- request- required
- Throws:
- GeneratorException- if any
 
- 
getEnhancedDescriptorFilePath
- 
writeDescriptorpublic void writeDescriptor(File destinationFile, PluginToolsRequest request, org.apache.maven.tools.plugin.generator.PluginDescriptorFilesGenerator.DescriptorType type) throws IOException - Throws:
- IOException
 
- 
processMojoDescriptorprotected 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) 
- 
writeParameterTypeprotected 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-
 
 
-