org.codehaus.mojo.exec
Class ExecMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.exec.AbstractExecMojo
org.codehaus.mojo.exec.ExecMojo
- All Implemented Interfaces:
- ContextEnabled, Mojo
public class ExecMojo
- extends AbstractExecMojo
A Plugin for executing external programs.
- Since:
- 1.0
- Version:
- $Id: ExecMojo.java 8882 2009-01-22 20:47:34Z lacostej $
- Author:
- Jerome Lacoste
- Is defined by the goal name:
- exec
- Requires the dependencies in this specified scope:
- test
|
Field Summary |
static String |
CLASSPATH_TOKEN
if exec.args expression is used when invokign the exec:exec goal,
any occurence of %classpath argument is replaced by the actual project dependency classpath. |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLASSPATH_TOKEN
public static final String CLASSPATH_TOKEN
- if exec.args expression is used when invokign the exec:exec goal,
any occurence of %classpath argument is replaced by the actual project dependency classpath.
- See Also:
- Constant Field Values
ExecMojo
public ExecMojo()
execute
public void execute()
throws MojoExecutionException
- priority in the execute method will be to use System properties arguments over the pom specification.
- Throws:
MojoExecutionException - if a failure happens
executeCommandLine
protected int executeCommandLine(org.codehaus.plexus.util.cli.Commandline commandLine,
org.codehaus.plexus.util.cli.StreamConsumer stream1,
org.codehaus.plexus.util.cli.StreamConsumer stream2)
throws org.codehaus.plexus.util.cli.CommandLineException
- Throws:
org.codehaus.plexus.util.cli.CommandLineException
getSystemProperty
protected String getSystemProperty(String key)
setSuccessCodes
public void setSuccessCodes(List list)
getSuccessCodes
public List getSuccessCodes()
Copyright © 2005-2009 Codehaus. All Rights Reserved.