org.codehaus.mojo.exec
Class ExecMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.exec.AbstractExecMojo
          extended by 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 12386 2010-07-16 22:10:38Z rfscholte $
Author:
Jerome Lacoste
Requires the dependencies in this specified scope:
test
Is defined by the goal name:
exec

Field Summary
static java.lang.String CLASSPATH_TOKEN
           
 
Fields inherited from class org.codehaus.mojo.exec.AbstractExecMojo
classpathScope, project
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
ExecMojo()
           
 
Method Summary
 void execute()
          priority in the execute method will be to use System properties arguments over the pom specification.
protected  int executeCommandLine(org.apache.commons.exec.Executor exec, org.apache.commons.exec.CommandLine commandLine, java.util.Map enviro, java.io.OutputStream out, java.io.OutputStream err)
           
 java.util.List getSuccessCodes()
           
protected  java.lang.String getSystemProperty(java.lang.String key)
           
 void setSuccessCodes(java.util.List list)
           
 
Methods inherited from class org.codehaus.mojo.exec.AbstractExecMojo
collectProjectArtifactsAndClasspath, hasCommandlineArgs, isSkip, parseCommandlineArgs, registerSourceRoots
 
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
 

Field Detail

CLASSPATH_TOKEN

public static final java.lang.String CLASSPATH_TOKEN
See Also:
Constant Field Values
Constructor Detail

ExecMojo

public ExecMojo()
Method Detail

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,
                                 java.util.Map enviro,
                                 java.io.OutputStream out,
                                 java.io.OutputStream err)
                          throws org.apache.commons.exec.ExecuteException,
                                 java.io.IOException
Throws:
org.apache.commons.exec.ExecuteException
java.io.IOException

getSystemProperty

protected java.lang.String getSystemProperty(java.lang.String key)

setSuccessCodes

public void setSuccessCodes(java.util.List list)

getSuccessCodes

public java.util.List getSuccessCodes()


Copyright © 2005-2011 Codehaus. All Rights Reserved.