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(java.util.Map scriptFilesKeyedByBasedir, java.lang.String outputDirectory)
           
 java.util.List execute(org.apache.maven.project.MavenProject project, org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
           
protected  java.util.List extractMojoDescriptors(java.util.Map scriptFilesKeyedByBasedir, org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
           
protected  java.util.List extractMojoDescriptorsFromMetadata(java.util.Map metadataFilesKeyedByBasedir, org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
           
protected  java.util.Map gatherFilesByBasedir(java.io.File basedir, java.util.List directories, java.lang.String scriptFileExtension)
           
protected  java.lang.String getMetadataFileExtension()
           
protected abstract  java.lang.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 java.util.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(java.util.Map scriptFilesKeyedByBasedir,
                                            java.lang.String outputDirectory)
                                     throws ExtractionException
Throws:
ExtractionException

gatherFilesByBasedir

protected java.util.Map gatherFilesByBasedir(java.io.File basedir,
                                             java.util.List directories,
                                             java.lang.String scriptFileExtension)

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
Throws:
ExtractionException
org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException

getMetadataFileExtension

protected java.lang.String getMetadataFileExtension()

extractMojoDescriptors

protected java.util.List extractMojoDescriptors(java.util.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 java.lang.String getScriptFileExtension()


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