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:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class ExecMojo
- extends AbstractExecMojo
A Plugin for executing external programs.
- Since:
- 1.0
- Version:
- $Id: ExecMojo.java 14727 2011-09-15 19:58:00Z rfscholte $
- Author:
- Jerome Lacoste
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 |
CLASSPATH_TOKEN
public static final String CLASSPATH_TOKEN
- See Also:
- Constant Field Values
ExecMojo
public ExecMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
- priority in the execute method will be to use System properties arguments over the pom specification.
- Throws:
org.apache.maven.plugin.MojoExecutionException
- if a failure happens
executeCommandLine
protected int executeCommandLine(org.apache.commons.exec.Executor exec,
org.apache.commons.exec.CommandLine commandLine,
Map enviro,
OutputStream out,
OutputStream err)
throws org.apache.commons.exec.ExecuteException,
IOException
- Throws:
org.apache.commons.exec.ExecuteException
IOException
getSystemProperty
protected String getSystemProperty(String key)
setSuccessCodes
public void setSuccessCodes(Integer[] list)
getSuccessCodes
public int[] getSuccessCodes()
Copyright © 2005-2011 Codehaus. All Rights Reserved.