com.quadrique.jbuildingblocks.core.process
Class JbbProcess

java.lang.Object
  extended by com.quadrique.jbuildingblocks.core.process.JbbProcess

public class JbbProcess
extends Object

This class provides miscellaneous process utilities


Method Summary
 int launchAndWaitForCompletion(String zCommand, String zCommandWorkingDirectory, StringBuffer zStdErrContent)
          launch a command and wait for its completion
 int launchAndWaitForCompletion(String zCommand, String zCommandWorkingDirectory, StringBuffer zStdErrContent, StringBuffer zStdOutContent)
          launch a command and wait for its completion
static JbbProcess newInstance()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newInstance

public static JbbProcess newInstance()

launchAndWaitForCompletion

public int launchAndWaitForCompletion(String zCommand,
                                      String zCommandWorkingDirectory,
                                      StringBuffer zStdErrContent)
                               throws Exception
launch a command and wait for its completion

Parameters:
zCommand - the absolute path to the command to execute (e.g. "C:\\temp\\rv.bat")
zCommandWorkingDirectory - the working directory for the command (e.g. "C:\\temp"); If zCommandWorkingDirectory is null, the subprocess inherits the current working directory of the current process.
Returns:
the launched process return value
Throws:
Exception

launchAndWaitForCompletion

public int launchAndWaitForCompletion(String zCommand,
                                      String zCommandWorkingDirectory,
                                      StringBuffer zStdErrContent,
                                      StringBuffer zStdOutContent)
                               throws Exception
launch a command and wait for its completion

Parameters:
zCommand - the absolute path to the comamnd to execute (e.g. "C:\\temp\\rv.bat")
zCommandWorkingDirectory - the working directory for the command (e.g. "C:\\temp"); If zCommandWorkingDirectory is null, the subprocess inherits the current working directory of the current process.
Returns:
the launched process return value
Throws:
Exception


Copyright © 2001-2008 Quadrique Corporation. All Rights Reserved.