|
|||||||||
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 String |
JAVA
|
static String |
JAVA_GEN
|
static String |
META_INF_GEN
|
static String |
RES
|
static String |
RES_GEN
|
static String |
WEB_INF_GEN
|
Constructor Summary | |
---|---|
MantGoal(org.apache.maven.plugin.Mojo mojo,
org.apache.maven.project.MavenProject project,
String taskdefClass,
String task,
String[] mappings)
Creates this goal using the given mojo and project information. |
Method Summary | |
---|---|
void |
execute()
Executes the underlying ant task. |
void |
execute(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. |
String |
getClasspathString()
Gets the classpath as a single string and always has a colon (or OS equivalent) on the end, when non empty. |
String |
getJava()
|
String |
getJavaGen()
|
String |
getMetaInfGen()
|
String |
getRes()
|
String |
getResGen()
|
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 String JAVA
public static final String RES
public static final String JAVA_GEN
public static final String RES_GEN
public static final String WEB_INF_GEN
public static final String META_INF_GEN
Constructor Detail |
---|
public MantGoal(org.apache.maven.plugin.Mojo mojo, org.apache.maven.project.MavenProject project, String taskdefClass, String task, String[] mappings)
mojo
- project
- taskdefClass
- task
- mappings
- Method Detail |
---|
public void execute(String classpathProperty) throws org.apache.maven.plugin.MojoExecutionException
classpathProperty
- TODO
org.apache.maven.plugin.MojoExecutionException
org.dom4j.DocumentException
Exception
public void execute() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public void executeTask() throws Exception
Exception
public void updateProject()
public String getClasspathString()
public String getJava()
public String getRes()
public String getJavaGen()
public String getResGen()
public String getWebInfGen()
public String getMetaInfGen()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |