org.apache.servicemix.exec.utils
Class ExecUtils

java.lang.Object
  extended by org.apache.servicemix.exec.utils.ExecUtils

public class ExecUtils
extends java.lang.Object

Utility class to execute system command.

Author:
jbonofre

Constructor Summary
ExecUtils()
           
 
Method Summary
static ExecResponse execute(ExecRequest execRequest)
           Executes a command and returns the output and error buffer and also the return value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecUtils

public ExecUtils()
Method Detail

execute

public static ExecResponse execute(ExecRequest execRequest)
                            throws ExecException

Executes a command and returns the output and error buffer and also the return value.

Parameters:
execRequest - the exec request.
Returns:
the execution response.
Throws:
ExecException - in case of execution failure.


Copyright © 2005-2012 FuseSource. All Rights Reserved.