randoop.util
Class RunCmd

Object
  extended by RunCmd

public class RunCmd
extends Object


Constructor Summary
Constructor and Description
RunCmd()
           
 
Method Summary
Modifier and Type Method and Description
static void run_cmd(String cmd)
          Runs the specified command and waits for it to finish.
static void run_cmd(String[] cmd)
          Runs the specified command and waits for it to finish.
static void run_cmd(String[] cmd_args, String[] env_arr, File dir)
          Runs the specified command and waits for it to finish.
static void run_cmd(String cmd, String[] env_arr, File dir)
          Runs the specified command and waits for it to finish.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RunCmd

public RunCmd()
Method Detail

run_cmd

public static void run_cmd(String[] cmd_args,
                           String[] env_arr,
                           File dir)
Runs the specified command and waits for it to finish. Throws an Error if the command fails for any reason or returns a non-zero status. The parameters are the same as for Runtime.exec() except that cmd is tokenized with support for quote characters. Any output is written to standard out. No input is provided.


run_cmd

public static void run_cmd(String[] cmd)
Runs the specified command and waits for it to finish. Throws an Error if the command fails for any reason. Returns the status of the command. Any output is written to standard out. No input is provided.


run_cmd

public static void run_cmd(String cmd,
                           String[] env_arr,
                           File dir)
Runs the specified command and waits for it to finish. Throws an Error if the command fails for any reason or returns a non-zero status. The parameters are the same as for Runtime.exec() except that cmd is tokenized with support for quote characters. Any output is written to standard out. No input is provided.


run_cmd

public static void run_cmd(String cmd)
Runs the specified command and waits for it to finish. Throws an Error if the command fails for any reason. Returns the status of the command. Any output is written to standard out. No input is provided.