|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.antrun.AntRunMojo
public class AntRunMojo
Maven AntRun Mojo. This plugin provides the capability of calling Ant tasks from a POM by running the nested ant tasks inside the <tasks/> parameter. It is encouraged to move the actual tasks to a separate build.xml file and call that file with an <ant/> task.
| Field Summary | |
|---|---|
static java.lang.String |
ANTLIB
The path to The XML file containing the definition of the Maven tasks. |
static java.lang.String |
DEFAULT_ANT_TARGET_NAME
The default target name. |
static java.lang.String |
DEFAULT_MAVEN_PROJECT_HELPER_REFID
The refid used to store the Maven project object in the Ant build. |
static java.lang.String |
DEFAULT_MAVEN_PROJECT_REFID
The refid used to store the Maven project object in the Ant build. |
static java.lang.String |
DEPENDENCY_PREFIX
Deprecated. This should only be used for generating the old property format. |
protected org.apache.maven.artifact.repository.ArtifactRepository |
localRepository
The local Maven repository |
static java.lang.String |
TASK_URI
The URI which defines the built in Ant tasks |
static java.lang.String |
UTF_8
The default encoding to use for the generated Ant build. |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AntRunMojo()
|
|
| Method Summary | |
|---|---|
java.lang.String |
checkTargetName(org.codehaus.plexus.configuration.PlexusConfiguration antTargetConfig)
|
void |
copyProperties(org.apache.maven.project.MavenProject mavenProject,
org.apache.tools.ant.Project antProject)
Copy properties from the maven project to the ant project. |
void |
execute()
|
static java.lang.String |
getDependencyArtifactPropertyName(org.apache.maven.artifact.Artifact artifact)
Deprecated. The dependency conflict ID should be used as the property name. |
org.apache.maven.project.MavenProject |
getMavenProject()
Get the current Maven project |
org.apache.tools.ant.types.Path |
getPathFromArtifacts(java.util.Collection artifacts,
org.apache.tools.ant.Project antProject)
|
void |
initMavenTasks(org.apache.tools.ant.Project antProject)
|
void |
stringReplace(java.lang.StringBuffer text,
java.lang.String match,
java.lang.String with)
Replace text in a StringBuffer. |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
|---|
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_MAVEN_PROJECT_REFID
public static final java.lang.String DEFAULT_MAVEN_PROJECT_HELPER_REFID
public static final java.lang.String DEFAULT_ANT_TARGET_NAME
public static final java.lang.String UTF_8
public static final java.lang.String ANTLIB
public static final java.lang.String TASK_URI
protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
public static final java.lang.String DEPENDENCY_PREFIX
| Constructor Detail |
|---|
public AntRunMojo()
| Method Detail |
|---|
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionMojo.execute()
public org.apache.tools.ant.types.Path getPathFromArtifacts(java.util.Collection artifacts,
org.apache.tools.ant.Project antProject)
throws org.apache.maven.artifact.DependencyResolutionRequiredException
artifacts - antProject -
org.apache.maven.artifact.DependencyResolutionRequiredException
public void copyProperties(org.apache.maven.project.MavenProject mavenProject,
org.apache.tools.ant.Project antProject)
mavenProject - antProject - public static java.lang.String getDependencyArtifactPropertyName(org.apache.maven.artifact.Artifact artifact)
artifact -
public org.apache.maven.project.MavenProject getMavenProject()
public void initMavenTasks(org.apache.tools.ant.Project antProject)
public void stringReplace(java.lang.StringBuffer text,
java.lang.String match,
java.lang.String with)
text - The string buffer containing the textmatch - The string to match and removewith - The string to insert
public java.lang.String checkTargetName(org.codehaus.plexus.configuration.PlexusConfiguration antTargetConfig)
throws org.codehaus.plexus.configuration.PlexusConfigurationException
org.codehaus.plexus.configuration.PlexusConfigurationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||