|
||||||||||
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 String |
ANTLIB
The path to The XML file containing the definition of the Maven tasks. |
static String |
DEFAULT_ANT_TARGET_NAME
The default target name. |
static String |
DEFAULT_MAVEN_PROJECT_HELPER_REFID
The refid used to store the Maven project object in the Ant build. |
static String |
DEFAULT_MAVEN_PROJECT_REFID
The refid used to store the Maven project object in the Ant build. |
static 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 String |
TASK_URI
The URI which defines the built in Ant tasks |
static 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 | |
---|---|
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 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(Collection artifacts,
org.apache.tools.ant.Project antProject)
|
void |
initMavenTasks(org.apache.tools.ant.Project antProject)
|
void |
stringReplace(StringBuffer text,
String match,
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 String DEFAULT_MAVEN_PROJECT_REFID
public static final String DEFAULT_MAVEN_PROJECT_HELPER_REFID
public static final String DEFAULT_ANT_TARGET_NAME
public static final String UTF_8
public static final String ANTLIB
public static final String TASK_URI
protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
public static final String DEPENDENCY_PREFIX
Constructor Detail |
---|
public AntRunMojo()
Method Detail |
---|
public void execute() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
Mojo.execute()
public org.apache.tools.ant.types.Path getPathFromArtifacts(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 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(StringBuffer text, String match, String with)
text
- The string buffer containing the textmatch
- The string to match and removewith
- The string to insertpublic 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 |