public class CommandExecuteStreamHandler extends Object implements org.apache.tools.ant.taskdefs.ExecuteStreamHandler
Modifier and Type | Field and Description |
---|---|
protected BuildLogger |
buildLogger |
protected Thread |
errorThread |
protected Thread |
outputThread |
protected String |
planKey |
Constructor and Description |
---|
CommandExecuteStreamHandler(BuildLogger buildLogger,
String planKey) |
Modifier and Type | Method and Description |
---|---|
void |
setProcessErrorStream(InputStream inputStream)
Process the commands error stream
|
void |
setProcessInputStream(OutputStream outputStream)
Handle the command's input stream - currently ignored
|
void |
setProcessOutputStream(InputStream inputStream)
Process the command output stream
|
void |
start()
Required by the intereface, but not implemented
|
void |
stop()
Stop the threads
|
protected Thread outputThread
protected Thread errorThread
protected final BuildLogger buildLogger
protected final String planKey
public CommandExecuteStreamHandler(BuildLogger buildLogger, String planKey)
public void setProcessInputStream(OutputStream outputStream) throws IOException
setProcessInputStream
in interface org.apache.tools.ant.taskdefs.ExecuteStreamHandler
outputStream
- The output streamIOException
- Failurepublic void setProcessErrorStream(InputStream inputStream) throws IOException
setProcessErrorStream
in interface org.apache.tools.ant.taskdefs.ExecuteStreamHandler
inputStream
- The error streamIOException
- Something went wrongpublic void setProcessOutputStream(InputStream inputStream) throws IOException
setProcessOutputStream
in interface org.apache.tools.ant.taskdefs.ExecuteStreamHandler
inputStream
- The data output from the commandIOException
- Something went wrongpublic void start() throws IOException
start
in interface org.apache.tools.ant.taskdefs.ExecuteStreamHandler
IOException
- Will never happen!public void stop()
stop
in interface org.apache.tools.ant.taskdefs.ExecuteStreamHandler
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.