org.apache.maven.script.ant
Class AntMojoWrapper
java.lang.Object
  
org.apache.maven.plugin.AbstractMojo
      
org.apache.maven.script.ant.AntMojoWrapper
- All Implemented Interfaces: 
 - ContextEnabled, Mojo, org.codehaus.plexus.component.MapOrientedComponent
 
public class AntMojoWrapper
- extends AbstractMojo
- implements ContextEnabled, org.codehaus.plexus.component.MapOrientedComponent
  
 
| Fields inherited from interface org.apache.maven.plugin.Mojo | 
ROLE | 
 
| 
Constructor Summary | 
AntMojoWrapper(org.codehaus.plexus.component.factory.ant.AntScriptInvoker scriptInvoker)
 
            | 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
AntMojoWrapper
public AntMojoWrapper(org.codehaus.plexus.component.factory.ant.AntScriptInvoker scriptInvoker)
execute
public void execute()
             throws MojoExecutionException
- Description copied from interface: 
Mojo 
- Perform whatever build-process behavior this 
Mojo implements.
 
 This is the main trigger for the Mojo inside the Maven system, and allows
 the Mojo to communicate errors.
- Specified by:
 execute in interface Mojo
 
- Throws:
 MojoExecutionException - if an unexpected problem occurs.
 Throwing this exception causes a "BUILD ERROR" message to be displayed.
 
 
setPluginContext
public void setPluginContext(Map pluginContext)
- Description copied from interface: 
ContextEnabled 
- Set a new shared context 
Map to a mojo before executing it.
- Specified by:
 setPluginContext in interface ContextEnabled- Overrides:
 setPluginContext in class AbstractMojo
 
- Parameters:
 pluginContext - a new Map- See Also:
 ContextEnabled.setPluginContext(java.util.Map)
 
 
getPluginContext
public Map getPluginContext()
- Specified by:
 getPluginContext in interface ContextEnabled- Overrides:
 getPluginContext in class AbstractMojo
 
- Returns:
 - a 
Map stored in the plugin container's context. - See Also:
 ContextEnabled.getPluginContext()
 
addComponentRequirement
public void addComponentRequirement(org.codehaus.plexus.component.repository.ComponentRequirement requirementDescriptor,
                                    Object requirementValue)
                             throws org.codehaus.plexus.component.configurator.ComponentConfigurationException
- 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
- Specified by:
 setComponentConfiguration in interface org.codehaus.plexus.component.MapOrientedComponent
 
- Throws:
 org.codehaus.plexus.component.configurator.ComponentConfigurationException
 
Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.