Package com.atlassian.bamboo.command
Class CommandExecuteStreamHandler
java.lang.Object
com.atlassian.bamboo.command.CommandExecuteStreamHandler
- All Implemented Interfaces:
org.apache.tools.ant.taskdefs.ExecuteStreamHandler
public class CommandExecuteStreamHandler
extends Object
implements org.apache.tools.ant.taskdefs.ExecuteStreamHandler
This class returns the contents of the output stream and error streams that resulted from executing a command line.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final BuildLogger
protected Thread
protected Thread
protected final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setProcessErrorStream
(InputStream inputStream) Process the commands error streamvoid
setProcessInputStream
(OutputStream outputStream) Handle the command's input stream - currently ignoredvoid
setProcessOutputStream
(InputStream inputStream) Process the command output streamvoid
start()
Required by the intereface, but not implementedvoid
stop()
Stop the threads
-
Field Details
-
outputThread
-
errorThread
-
buildLogger
-
planKey
-
-
Constructor Details
-
CommandExecuteStreamHandler
-
-
Method Details
-
setProcessInputStream
Handle the command's input stream - currently ignored- Specified by:
setProcessInputStream
in interfaceorg.apache.tools.ant.taskdefs.ExecuteStreamHandler
- Parameters:
outputStream
- The output stream- Throws:
IOException
- Failure
-
setProcessErrorStream
Process the commands error stream- Specified by:
setProcessErrorStream
in interfaceorg.apache.tools.ant.taskdefs.ExecuteStreamHandler
- Parameters:
inputStream
- The error stream- Throws:
IOException
- Something went wrong
-
setProcessOutputStream
Process the command output stream- Specified by:
setProcessOutputStream
in interfaceorg.apache.tools.ant.taskdefs.ExecuteStreamHandler
- Parameters:
inputStream
- The data output from the command- Throws:
IOException
- Something went wrong
-
start
Required by the intereface, but not implemented- Specified by:
start
in interfaceorg.apache.tools.ant.taskdefs.ExecuteStreamHandler
- Throws:
IOException
- Will never happen!
-
stop
public void stop()Stop the threads- Specified by:
stop
in interfaceorg.apache.tools.ant.taskdefs.ExecuteStreamHandler
-