org.apache.maven.plugin.antrun
Class AbstractAntMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.antrun.AbstractAntMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
AntRunMojo

public abstract class AbstractAntMojo
extends org.apache.maven.plugin.AbstractMojo

Abstract class for the Antrun plugin

Version:
$Id: AbstractAntMojo.java 948050 2010-05-25 14:10:58Z pgier $
Author:
Kenney Westerhof, Vincent Siveton

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_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.
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
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractAntMojo()
           
 
Method Summary
 void copyProperties(org.apache.maven.project.MavenProject mavenProject, org.apache.tools.ant.Project antProject)
          Copy properties from the maven project to the ant project.
protected  void executeTasks(org.apache.tools.ant.Target antTasks)
           
 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)
           
 
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
 
Methods inherited from interface org.apache.maven.plugin.Mojo
execute
 

Field Detail

DEFAULT_MAVEN_PROJECT_REFID

public static final java.lang.String DEFAULT_MAVEN_PROJECT_REFID
The refid used to store the Maven project object in the Ant build.

See Also:
Constant Field Values

DEFAULT_MAVEN_PROJECT_HELPER_REFID

public static final java.lang.String DEFAULT_MAVEN_PROJECT_HELPER_REFID
The refid used to store the Maven project object in the Ant build.

See Also:
Constant Field Values

ANTLIB

public static final java.lang.String ANTLIB
The path to The XML file containing the definition of the Maven tasks.

See Also:
Constant Field Values

TASK_URI

public static final java.lang.String TASK_URI
The URI which defines the built in Ant tasks

See Also:
Constant Field Values

localRepository

protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
The local Maven repository

Constructor Detail

AbstractAntMojo

public AbstractAntMojo()
Method Detail

executeTasks

protected void executeTasks(org.apache.tools.ant.Target antTasks)
                     throws org.apache.maven.plugin.MojoExecutionException
Parameters:
antTasks -
mavenProject -
Throws:
org.apache.maven.plugin.MojoExecutionException

getPathFromArtifacts

public org.apache.tools.ant.types.Path getPathFromArtifacts(java.util.Collection artifacts,
                                                            org.apache.tools.ant.Project antProject)
                                                     throws org.apache.maven.artifact.DependencyResolutionRequiredException
Parameters:
artifacts -
antProject -
Returns:
a path
Throws:
org.apache.maven.artifact.DependencyResolutionRequiredException

copyProperties

public void copyProperties(org.apache.maven.project.MavenProject mavenProject,
                           org.apache.tools.ant.Project antProject)
Copy properties from the maven project to the ant project.

Parameters:
mavenProject -
antProject -

getMavenProject

public org.apache.maven.project.MavenProject getMavenProject()
Get the current Maven project

Returns:
current Maven project

initMavenTasks

public void initMavenTasks(org.apache.tools.ant.Project antProject)


Copyright © 2002-2010 Apache Software Foundation. All Rights Reserved.