net.sourceforge.cruisecontrol.util
Class CommandlineUtil

java.lang.Object
  extended bynet.sourceforge.cruisecontrol.util.CommandlineUtil

public final class CommandlineUtil
extends java.lang.Object

A utility that helps to run command lines.

Author:
Scott Coplin

Method Summary
static java.io.InputStream streamOutput(Commandline command)
          Run a command line and stream the output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

streamOutput

public static java.io.InputStream streamOutput(Commandline command)
Run a command line and stream the output. It is expected that the stream that is returned is read to the end and then closed. This will ensure that it releases any associated resources. The error stream will be sent to the log.

Parameters:
command - The command to run.
Returns:
The output stream of the command.