Class AbstractScriptedMojoDescriptorExtractor
java.lang.Object
org.apache.maven.tools.plugin.extractor.AbstractScriptedMojoDescriptorExtractor
- All Implemented Interfaces:
- MojoDescriptorExtractor
- Direct Known Subclasses:
- AntMojoDescriptorExtractor,- BeanshellMojoDescriptorExtractor
@Deprecated
public abstract class AbstractScriptedMojoDescriptorExtractor
extends Object
implements MojoDescriptorExtractor
Deprecated.
Scripting support for Mojos is deprecated and is planned to be removed in Maven 4.0
- Author:
- jdcasey
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidcopyScriptsToOutputDirectory(Map<String, Set<File>> scriptFilesKeyedByBasedir, String outputDirectory, PluginToolsRequest request) Deprecated.List<org.apache.maven.plugin.descriptor.MojoDescriptor> execute(PluginToolsRequest request) Deprecated.Execute the mojo extraction.protected List<org.apache.maven.plugin.descriptor.MojoDescriptor> extractMojoDescriptors(Map<String, Set<File>> scriptFilesKeyedByBasedir, PluginToolsRequest request) Deprecated.Should be implemented in the sub classes.protected List<org.apache.maven.plugin.descriptor.MojoDescriptor> extractMojoDescriptorsFromMetadata(Map<String, Set<File>> metadataFilesByBasedir, PluginToolsRequest request) Deprecated.Should be implemented in the sub classes.gatherFilesByBasedir(File basedir, List<String> directories, String scriptFileExtension, PluginToolsRequest request) Deprecated.protected StringDeprecated.Should be implemented in the sub classes.protected abstract StringgetScriptFileExtension(PluginToolsRequest request) Deprecated.booleanDeprecated.Returnstrueif extractor is deprecated.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.tools.plugin.extractor.MojoDescriptorExtractorgetGroupKey, getName, getRequiredJavaVersion
- 
Constructor Details- 
AbstractScriptedMojoDescriptorExtractorDeprecated.
 
- 
- 
Method Details- 
isDeprecatedDeprecated.Description copied from interface:MojoDescriptorExtractorReturnstrueif extractor is deprecated.- Specified by:
- isDeprecatedin interface- MojoDescriptorExtractor
 
- 
executepublic List<org.apache.maven.plugin.descriptor.MojoDescriptor> execute(PluginToolsRequest request) throws ExtractionException, org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException Deprecated.Execute the mojo extraction.- Specified by:
- executein interface- MojoDescriptorExtractor
- Parameters:
- request- The- PluginToolsRequestcontaining information for the extraction process.
- Returns:
- a list of mojo descriptors. These may return HTML values for some fields.
- Throws:
- ExtractionException- if any
- org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException- if any
 
- 
copyScriptsToOutputDirectoryprotected void copyScriptsToOutputDirectory(Map<String, Set<File>> scriptFilesKeyedByBasedir, String outputDirectory, PluginToolsRequest request) throws ExtractionExceptionDeprecated.- Parameters:
- scriptFilesKeyedByBasedir- not null
- outputDirectory- not null
- request- the request
- Throws:
- ExtractionException- if any
 
- 
gatherFilesByBasedirprotected Map<String,Set<File>> gatherFilesByBasedir(File basedir, List<String> directories, String scriptFileExtension, PluginToolsRequest request) Deprecated.- Parameters:
- basedir- not null
- directories- not null
- scriptFileExtension- not null
- request- the request
- Returns:
- map with subdirs paths as key
 
- 
extractMojoDescriptorsFromMetadataprotected List<org.apache.maven.plugin.descriptor.MojoDescriptor> extractMojoDescriptorsFromMetadata(Map<String, Set<File>> metadataFilesByBasedir, PluginToolsRequest request) throws ExtractionException, org.apache.maven.plugin.descriptor.InvalidPluginDescriptorExceptionDeprecated.Should be implemented in the sub classes.- Parameters:
- metadataFilesByBasedir- could be null
- request- The plugin request, never- null.
- Returns:
- always null
- Throws:
- ExtractionException- if any
- org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException- if any
 
- 
getMetadataFileExtensionDeprecated.Should be implemented in the sub classes.- Parameters:
- request- the request
- Returns:
- always null
 
- 
extractMojoDescriptorsprotected List<org.apache.maven.plugin.descriptor.MojoDescriptor> extractMojoDescriptors(Map<String, Set<File>> scriptFilesKeyedByBasedir, PluginToolsRequest request) throws ExtractionException, org.apache.maven.plugin.descriptor.InvalidPluginDescriptorExceptionDeprecated.Should be implemented in the sub classes.- Parameters:
- scriptFilesKeyedByBasedir- could be null
- request- The plugin request, never- null.
- Returns:
- always null
- Throws:
- ExtractionException- if any
- org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException- if any
 
- 
getScriptFileExtensionDeprecated.- Parameters:
- request- the request
- Returns:
- the file extension like .bshfor BeanShell.
 
 
-