org.codehaus.mojo.exec
Class ExecMojoTest.MockExecMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.exec.AbstractExecMojo
          extended by org.codehaus.mojo.exec.ExecMojo
              extended by org.codehaus.mojo.exec.ExecMojoTest.MockExecMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Enclosing class:
ExecMojoTest

static class ExecMojoTest.MockExecMojo
extends ExecMojo


Field Summary
 List commandLines
           
 int executeResult
           
 String failureMsg
           
 Map systemProperties
           
 
Fields inherited from class org.codehaus.mojo.exec.ExecMojo
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
ExecMojoTest.MockExecMojo()
           
 
Method Summary
protected  int executeCommandLine(org.apache.commons.exec.Executor exec, org.apache.commons.exec.CommandLine commandLine, Map enviro, OutputStream out, OutputStream err)
           
(package private)  int getAmountExecutedCommandLines()
           
(package private)  org.apache.commons.exec.CommandLine getExecutedCommandline(int index)
           
protected  String getSystemProperty(String key)
           
 
Methods inherited from class org.codehaus.mojo.exec.ExecMojo
execute, getExecutable, getExecutablePath, getExecutor, getSuccessCodes, isResultCodeAFailure, setArguments, setBasedir, setExecutable, setProject, setSuccessCodes, setWorkingDirectory, setWorkingDirectory
 
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

executeResult

public int executeResult

commandLines

public List commandLines

failureMsg

public String failureMsg

systemProperties

public Map systemProperties
Constructor Detail

ExecMojoTest.MockExecMojo

ExecMojoTest.MockExecMojo()
Method Detail

executeCommandLine

protected int executeCommandLine(org.apache.commons.exec.Executor exec,
                                 org.apache.commons.exec.CommandLine commandLine,
                                 Map enviro,
                                 OutputStream out,
                                 OutputStream err)
                          throws IOException,
                                 org.apache.commons.exec.ExecuteException
Overrides:
executeCommandLine in class ExecMojo
Throws:
IOException
org.apache.commons.exec.ExecuteException

getSystemProperty

protected String getSystemProperty(String key)
Overrides:
getSystemProperty in class ExecMojo

getAmountExecutedCommandLines

int getAmountExecutedCommandLines()

getExecutedCommandline

org.apache.commons.exec.CommandLine getExecutedCommandline(int index)


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.