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

java.lang.Object
  extended byorg.codehaus.plexus.logging.AbstractLogEnabled
      extended byorg.apache.maven.tools.plugin.generator.PluginHelpGenerator
All Implemented Interfaces:
Generator, org.codehaus.plexus.logging.LogEnabled

public class PluginHelpGenerator
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements Generator

Generates an HelpMojo class.

Since:
2.4
Version:
$Id: PluginHelpGenerator.java 746389 2009-02-20 22:26:33Z bentmann $
Author:
Vincent Siveton

Constructor Summary
PluginHelpGenerator()
          Default constructor
 
Method Summary
 void execute(java.io.File destinationDirectory, org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
          Execute the generation for a given plugin descriptor.
 void execute(java.io.File destinationDirectory, PluginToolsRequest request)
          Execute the generation for a given plugin descriptor.
protected static java.lang.String toText(java.lang.String html)
          Deprecated. since 2.4.3, using PluginUtils.toText(String) instead of.
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginHelpGenerator

public PluginHelpGenerator()
Default constructor

Method Detail

execute

public void execute(java.io.File destinationDirectory,
                    org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
             throws java.io.IOException
Execute the generation for a given plugin descriptor.

Specified by:
execute in interface Generator
Parameters:
destinationDirectory - required
pluginDescriptor - required
Throws:
java.io.IOException - if any

execute

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

Specified by:
execute in interface Generator
Parameters:
destinationDirectory - required
request - required
Throws:
java.io.IOException - if any

toText

protected static java.lang.String toText(java.lang.String html)
Deprecated. since 2.4.3, using PluginUtils.toText(String) instead of.

Converts a HTML fragment as extracted from a javadoc comment to a plain text string. This method tries to retain as much of the text formatting as possible by means of the following transformations:

Parameters:
html - The HTML fragment to convert to plain text, may be null.
Returns:
A string with HTML tags converted into pure text, never null.


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