org.apache.maven.tools.plugin.generator
Class PluginXdocGenerator

java.lang.Object
  extended by org.apache.maven.tools.plugin.generator.PluginXdocGenerator
All Implemented Interfaces:
Generator

public class PluginXdocGenerator
extends Object
implements Generator

Generate xdoc documentation for each mojo.

Version:
$Id: PluginXdocGenerator.java 1341236 2012-05-21 22:37:15Z hboutemy $

Constructor Summary
PluginXdocGenerator()
          Default constructor using Locale.ENGLISH as locale.
PluginXdocGenerator(org.apache.maven.project.MavenProject project)
          Constructor using Locale.ENGLISH as locale.
PluginXdocGenerator(org.apache.maven.project.MavenProject project, Locale locale)
           
 
Method Summary
 void execute(File destinationDirectory, PluginToolsRequest request)
          Execute the generation for a given plugin descriptor.
protected  void processMojoDescriptor(org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor, File destinationDirectory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginXdocGenerator

public PluginXdocGenerator()
Default constructor using Locale.ENGLISH as locale. Used only in test cases.


PluginXdocGenerator

public PluginXdocGenerator(org.apache.maven.project.MavenProject project)
Constructor using Locale.ENGLISH as locale.

Parameters:
project - not null Maven project.

PluginXdocGenerator

public PluginXdocGenerator(org.apache.maven.project.MavenProject project,
                           Locale locale)
Parameters:
project - not null.
locale - not null wanted locale.
Method Detail

execute

public void execute(File destinationDirectory,
                    PluginToolsRequest request)
             throws GeneratorException
Execute the generation for a given plugin descriptor.

Specified by:
execute in interface Generator
Parameters:
destinationDirectory - required
request - required
Throws:
GeneratorException

processMojoDescriptor

protected void processMojoDescriptor(org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor,
                                     File destinationDirectory)
                              throws IOException
Parameters:
mojoDescriptor - not null
destinationDirectory - not null
Throws:
IOException - if any


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.