org.apache.maven.tools.plugin.extractor.ant
Class AntMojoDescriptorExtractor

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.apache.maven.tools.plugin.extractor.AbstractScriptedMojoDescriptorExtractor
          extended by org.apache.maven.tools.plugin.extractor.ant.AntMojoDescriptorExtractor
All Implemented Interfaces:
MojoDescriptorExtractor, org.codehaus.plexus.logging.LogEnabled

public class AntMojoDescriptorExtractor
extends AbstractScriptedMojoDescriptorExtractor

Extracts Mojo descriptors from Ant sources.

Version:
$Id: AntMojoDescriptorExtractor.java 638333 2008-03-18 11:39:14Z bentmann $

Field Summary
 
Fields inherited from interface org.apache.maven.tools.plugin.extractor.MojoDescriptorExtractor
ROLE
 
Constructor Summary
AntMojoDescriptorExtractor()
           
 
Method Summary
protected  java.util.List extractMojoDescriptorsFromMetadata(java.util.Map metadataFilesKeyedByBasedir, org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
          Should be implemented in the sub classes.
protected  java.lang.String getMetadataFileExtension()
          Should be implemented in the sub classes.
protected  java.lang.String getScriptFileExtension()
          
 
Methods inherited from class org.apache.maven.tools.plugin.extractor.AbstractScriptedMojoDescriptorExtractor
copyScriptsToOutputDirectory, execute, extractMojoDescriptors, gatherFilesByBasedir
 
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

AntMojoDescriptorExtractor

public AntMojoDescriptorExtractor()
Method Detail

extractMojoDescriptorsFromMetadata

protected java.util.List extractMojoDescriptorsFromMetadata(java.util.Map metadataFilesKeyedByBasedir,
                                                            org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
                                                     throws ExtractionException,
                                                            org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
Should be implemented in the sub classes.

Overrides:
extractMojoDescriptorsFromMetadata in class AbstractScriptedMojoDescriptorExtractor
Parameters:
metadataFilesKeyedByBasedir - could be null
pluginDescriptor - could be null
Returns:
always null
Throws:
ExtractionException - if any
org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException - if any

getScriptFileExtension

protected java.lang.String getScriptFileExtension()

Specified by:
getScriptFileExtension in class AbstractScriptedMojoDescriptorExtractor
Returns:
the file extension like .bsh for BeanShell.

getMetadataFileExtension

protected java.lang.String getMetadataFileExtension()
Should be implemented in the sub classes.

Overrides:
getMetadataFileExtension in class AbstractScriptedMojoDescriptorExtractor
Returns:
always null


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.