org.codehaus.mojo.exec
public abstract class AbstractExecMojo extends AbstractMojo
Field Summary | |
---|---|
protected String | classpathScope
Defines the scope of the classpath passed to the plugin. |
protected MavenProject | project
The enclosing project.
|
Method Summary | |
---|---|
protected void | collectProjectArtifactsAndClasspath(List artifacts, List theClasspathFiles)
Collects the project artifacts in the specified List and the project specific classpath
(build output and build test output) Files in the specified List, depending on the plugin classpathScope value. |
protected boolean | hasCommandlineArgs() |
protected String[] | parseCommandlineArgs()
Parses the argument string given by the user. |
protected void | registerSourceRoots()
Register compile and compile tests source roots if necessary |
UNKNOWN: expression="${exec.classpathScope}" default-value="compile"
UNKNOWN: expression="${project}"
Parameters: artifacts the list where to collect the scope specific artifacts theClasspathFiles the list where to collect the scope specific output directories
Throws: NullPointerException if at least one of the parameter is null
Returns: true of the mojo has command line arguments
Returns: Array of String representing the arguments
Throws: MojoExecutionException for wrong formatted arguments