Class AntMojoDescriptorExtractor
- java.lang.Object
-
- org.codehaus.plexus.logging.AbstractLogEnabled
-
- org.apache.maven.tools.plugin.extractor.AbstractScriptedMojoDescriptorExtractor
-
- org.apache.maven.tools.plugin.extractor.ant.AntMojoDescriptorExtractor
-
- All Implemented Interfaces:
MojoDescriptorExtractor
,org.codehaus.plexus.logging.LogEnabled
@Deprecated @Named("ant") @Singleton public class AntMojoDescriptorExtractor extends AbstractScriptedMojoDescriptorExtractor
Deprecated.Scripting support for mojos is deprecated and is planned tp be removed in maven 4.0Extracts Mojo descriptors from Ant sources.
-
-
Constructor Summary
Constructors Constructor Description AntMojoDescriptorExtractor()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected List<org.apache.maven.plugin.descriptor.MojoDescriptor>
extractMojoDescriptorsFromMetadata(Map<String,Set<File>> metadataFilesKeyedByBasedir, PluginToolsRequest request)
Deprecated.Should be implemented in the sub classes.GroupKey
getGroupKey()
Deprecated.Returns theGroupKey
of extractor, asMojoScanner
will execute them grouped, and ordered within groups.protected String
getMetadataFileExtension(PluginToolsRequest request)
Deprecated.Should be implemented in the sub classes.String
getName()
Deprecated.Returns the "name" (id) of the extractor.protected String
getScriptFileExtension(PluginToolsRequest request)
Deprecated.-
Methods inherited from class org.apache.maven.tools.plugin.extractor.AbstractScriptedMojoDescriptorExtractor
copyScriptsToOutputDirectory, execute, extractMojoDescriptors, gatherFilesByBasedir, isDeprecated
-
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
-
Methods inherited from interface org.apache.maven.tools.plugin.extractor.MojoDescriptorExtractor
getRequiredJavaVersion
-
-
-
-
Field Detail
-
NAME
public static final String NAME
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AntMojoDescriptorExtractor
public AntMojoDescriptorExtractor()
Deprecated.
-
-
Method Detail
-
getName
public String getName()
Deprecated.Description copied from interface:MojoDescriptorExtractor
Returns the "name" (id) of the extractor.
-
getGroupKey
public GroupKey getGroupKey()
Deprecated.Description copied from interface:MojoDescriptorExtractor
Returns theGroupKey
of extractor, asMojoScanner
will execute them grouped, and ordered within groups. Must never returnnull
.
-
extractMojoDescriptorsFromMetadata
protected List<org.apache.maven.plugin.descriptor.MojoDescriptor> extractMojoDescriptorsFromMetadata(Map<String,Set<File>> metadataFilesKeyedByBasedir, PluginToolsRequest request) throws ExtractionException, org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
Deprecated.Should be implemented in the sub classes.- Overrides:
extractMojoDescriptorsFromMetadata
in classAbstractScriptedMojoDescriptorExtractor
- Parameters:
metadataFilesKeyedByBasedir
- could be nullrequest
- The plugin request, nevernull
.- Returns:
- always null
- Throws:
ExtractionException
- if anyorg.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
- if any
-
getScriptFileExtension
protected String getScriptFileExtension(PluginToolsRequest request)
Deprecated.- Specified by:
getScriptFileExtension
in classAbstractScriptedMojoDescriptorExtractor
- Parameters:
request
- the request- Returns:
- the file extension like
.bsh
for BeanShell.
-
getMetadataFileExtension
protected String getMetadataFileExtension(PluginToolsRequest request)
Deprecated.Should be implemented in the sub classes.- Overrides:
getMetadataFileExtension
in classAbstractScriptedMojoDescriptorExtractor
- Parameters:
request
- the request- Returns:
- always null
-
-