org.apache.maven.tools.plugin.extractor
Class AbstractScriptedMojoDescriptorExtractor
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
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
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 |
AbstractScriptedMojoDescriptorExtractor
public AbstractScriptedMojoDescriptorExtractor()
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.