org.apache.maven.script.ant
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, setLog
public void execute() throws MojoExecutionException
Mojo
Mojo
implements.
Mojo
inside the Maven
system, and allows
the Mojo
to communicate errors.execute
in interface Mojo
MojoExecutionException
- if an unexpected problem occurs.
Throwing this exception causes a "BUILD ERROR" message to be displayed.public void setPluginContext(java.util.Map pluginContext)
ContextEnabled
Map
to a mojo before executing it.setPluginContext
in interface ContextEnabled
setPluginContext
in class AbstractMojo
pluginContext
- a new Map
ContextEnabled.setPluginContext(java.util.Map)
public java.util.Map getPluginContext()
getPluginContext
in interface ContextEnabled
getPluginContext
in class AbstractMojo
Map
stored in the plugin container's context.ContextEnabled.getPluginContext()
public void addComponentRequirement(ComponentRequirement requirementDescriptor, java.lang.Object requirementValue) throws ComponentConfigurationException
ComponentConfigurationException
public void setComponentConfiguration(java.util.Map componentConfiguration) throws ComponentConfigurationException
ComponentConfigurationException
public 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)