public class AntMojoWrapper extends AbstractMojo implements ContextEnabled
| Constructor and Description |
|---|
AntMojoWrapper(AntScriptInvoker scriptInvoker) |
| Modifier and Type | Method and Description |
|---|---|
void |
addComponentRequirement(ComponentRequirement requirementDescriptor,
java.lang.Object requirementValue) |
void |
enableLogging(Logger logger) |
void |
execute()
Perform whatever build-process behavior this
Mojo implements. |
org.apache.tools.ant.Project |
getAntProject() |
MavenProject |
getMavenProject() |
MojoExecution |
getMojoExecution() |
org.apache.tools.ant.types.Path |
getPathFromArtifacts(java.util.Collection artifacts,
org.apache.tools.ant.Project antProject) |
PathTranslator |
getPathTranslator() |
java.util.Map |
getPluginContext() |
AntScriptInvoker |
getScriptInvoker() |
MavenSession |
getSession() |
void |
setAntProject(org.apache.tools.ant.Project antProject) |
void |
setComponentConfiguration(java.util.Map componentConfiguration) |
void |
setMavenProject(MavenProject mavenProject) |
void |
setMojoExecution(MojoExecution mojoExecution) |
void |
setPathTranslator(PathTranslator pathTranslator) |
void |
setPluginContext(java.util.Map pluginContext)
Set a new shared context
Map to a mojo before executing it. |
void |
setSession(MavenSession session) |
getLog, setLogpublic void execute()
throws MojoExecutionException
MojoMojo implements.
Mojo inside the Maven system, and allows
the Mojo to communicate errors.execute in interface MojoMojoExecutionException - if an unexpected problem occurs.
Throwing this exception causes a "BUILD ERROR" message to be displayed.public void setPluginContext(java.util.Map pluginContext)
ContextEnabledMap to a mojo before executing it.setPluginContext in interface ContextEnabledsetPluginContext in class AbstractMojopluginContext - a new MapContextEnabled.setPluginContext(java.util.Map)public java.util.Map getPluginContext()
getPluginContext in interface ContextEnabledgetPluginContext in class AbstractMojoMap stored in the plugin container's context.ContextEnabled.getPluginContext()public void addComponentRequirement(ComponentRequirement requirementDescriptor,
java.lang.Object requirementValue)
throws ComponentConfigurationException
ComponentConfigurationExceptionpublic void setComponentConfiguration(java.util.Map componentConfiguration)
throws ComponentConfigurationException
ComponentConfigurationExceptionpublic org.apache.tools.ant.types.Path getPathFromArtifacts(java.util.Collection artifacts,
org.apache.tools.ant.Project antProject)
throws DependencyResolutionRequiredException
public org.apache.tools.ant.Project getAntProject()
public void setAntProject(org.apache.tools.ant.Project antProject)
public MavenProject getMavenProject()
public void setMavenProject(MavenProject mavenProject)
public MojoExecution getMojoExecution()
public void setMojoExecution(MojoExecution mojoExecution)
public MavenSession getSession()
public void setSession(MavenSession session)
public PathTranslator getPathTranslator()
public void setPathTranslator(PathTranslator pathTranslator)
public AntScriptInvoker getScriptInvoker()
public void enableLogging(Logger logger)