|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.maven.ant.MavenTask
Allows Ant to "wrap" Maven. One might use it in an ant build.xml thusly:
<target name="masterbuild"> <taskdef name="maven" classname="org.apache.maven.ant.MavenTask"/> <maven mavenHome="/usr/local/maven" goalName="masterbuild" projectBuildFile="maven.xml" projectFileName="project-CurrentMavenGeneration.xml" toolsJar="/usr/local/jdk/lib/tools.jar" /> </target>
Field Summary |
Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
Constructor Summary | |
MavenTask()
|
Method Summary | |
void |
execute()
Does the work. |
java.lang.String |
getGoalName()
Gets the value of goalName |
java.lang.String |
getMavenHome()
Gets the value of mavenHome |
java.lang.String |
getProjectBuildFile()
Gets the value of projectBuildFile |
java.lang.String |
getProjectFileName()
Gets the value of projectFileName |
java.lang.String |
getToolsJar()
Gets the value of toolsJar |
void |
setGoalName(java.lang.String argGoalName)
Sets the value of goalName |
void |
setMavenHome(java.lang.String argMavenHome)
Sets the value of mavenHome |
void |
setProjectBuildFile(java.lang.String argProjectBuildFile)
Sets the value of projectBuildFile (e.g. |
void |
setProjectFileName(java.lang.String argProjectFileName)
Sets the value of projectFileName (e.g. |
void |
setToolsJar(java.lang.String argToolsJar)
Sets the value of toolsJar |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MavenTask()
Method Detail |
public java.lang.String getProjectFileName()
public void setProjectFileName(java.lang.String argProjectFileName)
argProjectFileName
- Value to assign to this.projectFileNamepublic java.lang.String getProjectBuildFile()
public void setProjectBuildFile(java.lang.String argProjectBuildFile)
argProjectBuildFile
- Value to assign to this.projectBuildFilepublic java.lang.String getGoalName()
public void setGoalName(java.lang.String argGoalName)
argGoalName
- Value to assign to this.goalNamepublic java.lang.String getMavenHome()
public void setMavenHome(java.lang.String argMavenHome)
argMavenHome
- Value to assign to this.mavenHomepublic java.lang.String getToolsJar()
public void setToolsJar(java.lang.String argToolsJar)
argToolsJar
- Value to assign to this.toolsJarpublic void execute() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
- Thrown in unrecoverable error.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |