org.codehaus.mojo.exec
Class AbstractExecMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.exec.AbstractExecMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
- ExecJavaMojo, ExecMojo
public abstract class AbstractExecMojo
- extends org.apache.maven.plugin.AbstractMojo
This class is used for unifying functionality between the 2 mojo exec plugins ('java' and 'exec').
It handles parsing the arguments and adding source/test folders.
- Author:
- Philippe Jacot (PJA), Jerome Lacoste
Field Summary |
protected org.apache.maven.project.MavenProject |
project
The enclosing project. |
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
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 |
project
protected org.apache.maven.project.MavenProject project
- The enclosing project.
AbstractExecMojo
public AbstractExecMojo()
parseCommandlineArgs
protected java.lang.String[] parseCommandlineArgs()
throws org.apache.maven.plugin.MojoExecutionException
- Parses the argument string given by the user. Strings are recognized as everything between STRING_WRAPPER.
PARAMETER_DELIMITER is ignored inside a string. STRING_WRAPPER and PARAMETER_DELIMITER can be escaped using
ESCAPE_CHAR.
- Returns:
- Array of String representing the arguments
- Throws:
org.apache.maven.plugin.MojoExecutionException
- for wrong formatted arguments
hasCommandlineArgs
protected boolean hasCommandlineArgs()
registerSourceRoots
protected void registerSourceRoots()
Copyright © 2005-2009. All Rights Reserved.