|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.mojo.mant.MantGoal
public class MantGoal
Class to handle execution of an ant task. For an optional task a taskdef will be created using a constructor supplied class and the dependecies for the corresponding classpath. A build.xml temp file is created and executed with the ant api.
Field Summary | |
---|---|
static java.lang.String |
JAVA
|
static java.lang.String |
JAVA_GEN
|
static java.lang.String |
META_INF_GEN
|
static java.lang.String |
RES
|
static java.lang.String |
RES_GEN
|
static java.lang.String |
WEB_INF_GEN
|
Constructor Summary | |
---|---|
MantGoal(org.apache.maven.plugin.Mojo mojo,
org.apache.maven.project.MavenProject project,
java.lang.String taskdefClass,
java.lang.String task,
java.lang.String[] mappings)
Creates this goal using the given mojo and project information. |
Method Summary | |
---|---|
void |
execute()
Executes the underlying ant task. |
void |
execute(java.lang.String classpathProperty)
Executes the ant task whilst the given system property has the classpath string set. |
void |
executeTask()
Executes the ant task by creating the build.xml file and running it through ant. |
java.lang.String |
getClasspathString()
Gets the classpath as a single string and always has a colon (or OS equivalent) on the end, when non empty. |
java.lang.String |
getJava()
|
java.lang.String |
getJavaGen()
|
java.lang.String |
getMetaInfGen()
|
java.lang.String |
getRes()
|
java.lang.String |
getResGen()
|
java.lang.String |
getWebInfGen()
|
void |
updateProject()
Updates the resource and sources project directories to reflect generated code. |
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 JAVA
public static final java.lang.String RES
public static final java.lang.String JAVA_GEN
public static final java.lang.String RES_GEN
public static final java.lang.String WEB_INF_GEN
public static final java.lang.String META_INF_GEN
Constructor Detail |
---|
public MantGoal(org.apache.maven.plugin.Mojo mojo, org.apache.maven.project.MavenProject project, java.lang.String taskdefClass, java.lang.String task, java.lang.String[] mappings)
mojo
- project
- taskdefClass
- task
- mappings
- Method Detail |
---|
public void execute(java.lang.String classpathProperty) throws org.apache.maven.plugin.MojoExecutionException
classpathProperty
- TODO
org.apache.maven.plugin.MojoExecutionException
org.dom4j.DocumentException
java.lang.Exception
public void execute() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public void executeTask() throws java.lang.Exception
java.lang.Exception
public void updateProject()
public java.lang.String getClasspathString()
public java.lang.String getJava()
public java.lang.String getRes()
public java.lang.String getJavaGen()
public java.lang.String getResGen()
public java.lang.String getWebInfGen()
public java.lang.String getMetaInfGen()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |