org.apache.maven.tools.plugin.extractor
Class AbstractScriptedMojoDescriptorExtractor

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

public abstract class AbstractScriptedMojoDescriptorExtractor
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements MojoDescriptorExtractor

Author:
jdcasey

Field Summary
 
Fields inherited from interface org.apache.maven.tools.plugin.extractor.MojoDescriptorExtractor
ROLE
 
Constructor Summary
AbstractScriptedMojoDescriptorExtractor()
           
 
Method Summary
protected  void copyScriptsToOutputDirectory(Map scriptFilesKeyedByBasedir, String outputDirectory)
           
 List execute(org.apache.maven.project.MavenProject project, org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
           
protected  List extractMojoDescriptors(Map scriptFilesKeyedByBasedir, org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
           
protected  List extractMojoDescriptorsFromMetadata(Map metadataFilesKeyedByBasedir, org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
           
protected  Map gatherFilesByBasedir(File basedir, List directories, String scriptFileExtension)
           
protected  String getMetadataFileExtension()
           
protected abstract  String getScriptFileExtension()
           
 
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

AbstractScriptedMojoDescriptorExtractor

public AbstractScriptedMojoDescriptorExtractor()
Method Detail

execute

public List execute(org.apache.maven.project.MavenProject project,
                    org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
             throws ExtractionException,
                    org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
Specified by:
execute in interface MojoDescriptorExtractor
Throws:
ExtractionException
org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException

copyScriptsToOutputDirectory

protected void copyScriptsToOutputDirectory(Map scriptFilesKeyedByBasedir,
                                            String outputDirectory)
                                     throws ExtractionException
Throws:
ExtractionException

gatherFilesByBasedir

protected Map gatherFilesByBasedir(File basedir,
                                   List directories,
                                   String scriptFileExtension)

extractMojoDescriptorsFromMetadata

protected List extractMojoDescriptorsFromMetadata(Map metadataFilesKeyedByBasedir,
                                                  org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
                                           throws ExtractionException,
                                                  org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
Throws:
ExtractionException
org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException

getMetadataFileExtension

protected String getMetadataFileExtension()

extractMojoDescriptors

protected List extractMojoDescriptors(Map scriptFilesKeyedByBasedir,
                                      org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
                               throws ExtractionException,
                                      org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
Throws:
ExtractionException
org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException

getScriptFileExtension

protected abstract String getScriptFileExtension()


Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.