|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.plugin.AbstractMojo org.codehaus.mojo.exec.AbstractExecMojo
public abstract class AbstractExecMojo
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.
Field Summary | |
---|---|
protected String |
classpathScope
Defines the scope of the classpath passed to the plugin. |
private String |
commandlineArgs
Arguments for the executed program |
protected org.apache.maven.project.MavenProject |
project
The enclosing project. |
private boolean |
skip
Skip the execution. |
private File |
sourceRoot
This folder is added to the list of those folders containing source to be compiled. |
private File |
testSourceRoot
This folder is added to the list of those folders containing source to be compiled for testing. |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
AbstractExecMojo()
|
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 boolean |
isSkip()
Check if the execution should be skipped |
protected String[] |
parseCommandlineArgs()
Parses the argument string given by the user. |
protected void |
registerSourceRoots()
Register compile and compile tests source roots if necessary |
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 |
Field Detail |
---|
protected org.apache.maven.project.MavenProject project
private File sourceRoot
private File testSourceRoot
private String commandlineArgs
protected String classpathScope
private boolean skip
Constructor Detail |
---|
public AbstractExecMojo()
Method Detail |
---|
protected void collectProjectArtifactsAndClasspath(List artifacts, List theClasspathFiles)
artifacts
- the list where to collect the scope specific artifactstheClasspathFiles
- the list where to collect the scope specific output directoriesprotected String[] parseCommandlineArgs() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
- for wrong formatted argumentsprotected boolean hasCommandlineArgs()
protected void registerSourceRoots()
protected boolean isSkip()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |