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<String,Set<File>> scriptFilesKeyedByBasedir,
String outputDirectory,
PluginToolsRequest request) |
List<org.apache.maven.plugin.descriptor.MojoDescriptor> |
execute(PluginToolsRequest request)
Execute the mojo extraction.
|
protected List<org.apache.maven.plugin.descriptor.MojoDescriptor> |
extractMojoDescriptors(Map<String,Set<File>> scriptFilesKeyedByBasedir,
PluginToolsRequest request)
Should be implemented in the sub classes.
|
protected List<org.apache.maven.plugin.descriptor.MojoDescriptor> |
extractMojoDescriptorsFromMetadata(Map<String,Set<File>> metadataFilesByBasedir,
PluginToolsRequest request)
Should be implemented in the sub classes.
|
protected Map<String,Set<File>> |
gatherFilesByBasedir(File basedir,
List<String> 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<org.apache.maven.plugin.descriptor.MojoDescriptor> 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<String,Set<File>> scriptFilesKeyedByBasedir, String outputDirectory, PluginToolsRequest request) throws ExtractionException
scriptFilesKeyedByBasedir
- not nulloutputDirectory
- not nullExtractionException
- if anyprotected Map<String,Set<File>> gatherFilesByBasedir(File basedir, List<String> directories, String scriptFileExtension, PluginToolsRequest request)
basedir
- not nulldirectories
- not nullscriptFileExtension
- not nullprotected List<org.apache.maven.plugin.descriptor.MojoDescriptor> extractMojoDescriptorsFromMetadata(Map<String,Set<File>> metadataFilesByBasedir, PluginToolsRequest request) throws ExtractionException, org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
metadataFilesByBasedir
- could be nullrequest
- The plugin request, never null
.ExtractionException
- if anyorg.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
- if anyprotected String getMetadataFileExtension(PluginToolsRequest request)
protected List<org.apache.maven.plugin.descriptor.MojoDescriptor> extractMojoDescriptors(Map<String,Set<File>> 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–2015 The Apache Software Foundation. All rights reserved.