railo.commons.cli
Class Command

java.lang.Object
  extended by railo.commons.cli.Command

public class Command
extends Object


Constructor Summary
Command()
           
 
Method Summary
static Process createProcess(String cmdline, boolean translate)
           
static String execute(Process p)
           
static String execute(String[] cmdline)
           
static String execute(String cmdline, boolean translate)
           
static String execute(String cmd, String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Command

public Command()
Method Detail

createProcess

public static Process createProcess(String cmdline,
                                    boolean translate)
                             throws IOException
Throws:
IOException

execute

public static String execute(String cmdline,
                             boolean translate)
                      throws IOException,
                             InterruptedException
Parameters:
cmdline - command line
translate - translate the command line or not
Returns:
Throws:
IOException
InterruptedException

execute

public static String execute(String[] cmdline)
                      throws IOException,
                             InterruptedException
Throws:
IOException
InterruptedException

execute

public static String execute(String cmd,
                             String[] args)
                      throws IOException,
                             InterruptedException
Throws:
IOException
InterruptedException

execute

public static String execute(Process p)
                      throws IOException,
                             InterruptedException
Throws:
IOException
InterruptedException


Copyright © 2012 Railo