Class AntMojoWrapper

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.codehaus.plexus.component.MapOrientedComponent, org.codehaus.plexus.logging.LogEnabled

    @Deprecated
    public class AntMojoWrapper
    extends org.apache.maven.plugin.AbstractMojo
    implements org.apache.maven.plugin.ContextEnabled, org.codehaus.plexus.component.MapOrientedComponent, org.codehaus.plexus.logging.LogEnabled
    Deprecated.
    Scripting support for mojos is deprecated and is planned tp be removed in maven 4.0
    • Constructor Detail

      • AntMojoWrapper

        public AntMojoWrapper​(org.codehaus.plexus.component.factory.ant.AntScriptInvoker scriptInvoker)
        Deprecated.
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException
        Deprecated.
        Specified by:
        execute in interface org.apache.maven.plugin.Mojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • setPluginContext

        public void setPluginContext​(Map pluginContext)
        Deprecated.
        Specified by:
        setPluginContext in interface org.apache.maven.plugin.ContextEnabled
        Overrides:
        setPluginContext in class org.apache.maven.plugin.AbstractMojo
      • getPluginContext

        public Map getPluginContext()
        Deprecated.
        Specified by:
        getPluginContext in interface org.apache.maven.plugin.ContextEnabled
        Overrides:
        getPluginContext in class org.apache.maven.plugin.AbstractMojo
      • addComponentRequirement

        public void addComponentRequirement​(org.codehaus.plexus.component.repository.ComponentRequirement requirementDescriptor,
                                            Object requirementValue)
                                     throws org.codehaus.plexus.component.configurator.ComponentConfigurationException
        Deprecated.
        Specified by:
        addComponentRequirement in interface org.codehaus.plexus.component.MapOrientedComponent
        Throws:
        org.codehaus.plexus.component.configurator.ComponentConfigurationException
      • setComponentConfiguration

        public void setComponentConfiguration​(Map componentConfiguration)
                                       throws org.codehaus.plexus.component.configurator.ComponentConfigurationException
        Deprecated.
        Specified by:
        setComponentConfiguration in interface org.codehaus.plexus.component.MapOrientedComponent
        Throws:
        org.codehaus.plexus.component.configurator.ComponentConfigurationException
      • getPathFromArtifacts

        public org.apache.tools.ant.types.Path getPathFromArtifacts​(Collection<org.apache.maven.artifact.Artifact> artifacts,
                                                                    org.apache.tools.ant.Project antProject)
                                                             throws org.apache.maven.artifact.DependencyResolutionRequiredException
        Deprecated.
        Throws:
        org.apache.maven.artifact.DependencyResolutionRequiredException
      • getAntProject

        public org.apache.tools.ant.Project getAntProject()
        Deprecated.
      • setAntProject

        public void setAntProject​(org.apache.tools.ant.Project antProject)
        Deprecated.
      • getMavenProject

        public org.apache.maven.project.MavenProject getMavenProject()
        Deprecated.
      • setMavenProject

        public void setMavenProject​(org.apache.maven.project.MavenProject mavenProject)
        Deprecated.
      • getMojoExecution

        public org.apache.maven.plugin.MojoExecution getMojoExecution()
        Deprecated.
      • setMojoExecution

        public void setMojoExecution​(org.apache.maven.plugin.MojoExecution mojoExecution)
        Deprecated.
      • getSession

        public org.apache.maven.execution.MavenSession getSession()
        Deprecated.
      • setSession

        public void setSession​(org.apache.maven.execution.MavenSession session)
        Deprecated.
      • getPathTranslator

        public org.apache.maven.project.path.PathTranslator getPathTranslator()
        Deprecated.
      • setPathTranslator

        public void setPathTranslator​(org.apache.maven.project.path.PathTranslator pathTranslator)
        Deprecated.
      • getScriptInvoker

        public org.codehaus.plexus.component.factory.ant.AntScriptInvoker getScriptInvoker()
        Deprecated.
      • enableLogging

        public void enableLogging​(org.codehaus.plexus.logging.Logger logger)
        Deprecated.
        Specified by:
        enableLogging in interface org.codehaus.plexus.logging.LogEnabled