public abstract class AbstractScriptedMojoDescriptorExtractor extends org.codehaus.plexus.logging.AbstractLogEnabled implements MojoDescriptorExtractor
ROLE
Constructor and Description |
---|
AbstractScriptedMojoDescriptorExtractor() |
Modifier and Type | Method and Description |
---|---|
protected void |
copyScriptsToOutputDirectory(Map scriptFilesKeyedByBasedir,
String outputDirectory,
PluginToolsRequest request) |
List |
execute(org.apache.maven.project.MavenProject project,
org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
Execute the mojo extraction.
|
List |
execute(PluginToolsRequest request)
Execute the mojo extraction.
|
protected List |
extractMojoDescriptors(Map scriptFilesKeyedByBasedir,
PluginToolsRequest request)
Should be implemented in the sub classes.
|
protected List |
extractMojoDescriptorsFromMetadata(Map metadataFilesKeyedByBasedir,
PluginToolsRequest request)
Should be implemented in the sub classes.
|
protected Map |
gatherFilesByBasedir(File basedir,
List directories,
String scriptFileExtension,
PluginToolsRequest request) |
protected String |
getMetadataFileExtension(PluginToolsRequest request)
Should be implemented in the sub classes.
|
protected abstract String |
getScriptFileExtension(PluginToolsRequest request) |
public AbstractScriptedMojoDescriptorExtractor()
public List execute(org.apache.maven.project.MavenProject project, org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor) throws ExtractionException, org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
execute
in interface MojoDescriptorExtractor
ExtractionException
- if anyorg.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
- if anypublic List execute(PluginToolsRequest request) throws ExtractionException, org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
execute
in interface MojoDescriptorExtractor
request
- The PluginToolsRequest
containing information for the extraction process.ExtractionException
- if anyorg.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
- if anyprotected void copyScriptsToOutputDirectory(Map scriptFilesKeyedByBasedir, String outputDirectory, PluginToolsRequest request) throws ExtractionException
scriptFilesKeyedByBasedir
- not nulloutputDirectory
- not nullExtractionException
- if anyprotected Map gatherFilesByBasedir(File basedir, List directories, String scriptFileExtension, PluginToolsRequest request)
basedir
- not nulldirectories
- not nullscriptFileExtension
- not nullprotected List extractMojoDescriptorsFromMetadata(Map metadataFilesKeyedByBasedir, PluginToolsRequest request) throws ExtractionException, org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
metadataFilesKeyedByBasedir
- could be nullrequest
- The plugin request, never null
.ExtractionException
- if anyorg.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
- if anyprotected String getMetadataFileExtension(PluginToolsRequest request)
protected List extractMojoDescriptors(Map scriptFilesKeyedByBasedir, PluginToolsRequest request) throws ExtractionException, org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
scriptFilesKeyedByBasedir
- could be nullrequest
- The plugin request, never null
.ExtractionException
- if anyorg.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
- if anyprotected abstract String getScriptFileExtension(PluginToolsRequest request)
.bsh
for BeanShell.Copyright © 2004-2012 Apache Software Foundation. All Rights Reserved.