Class JUnitTask.JUnitLogStreamHandler
java.lang.Object
org.apache.tools.ant.taskdefs.PumpStreamHandler
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.JUnitLogStreamHandler
- All Implemented Interfaces:
ExecuteStreamHandler
- Enclosing class:
JUnitTask
A log stream handler for junit.
- Since:
- Ant 1.7
-
Nested Class Summary
Nested classes/interfaces inherited from class PumpStreamHandler
PumpStreamHandler.ThreadWithPumperModifier and TypeClassDescriptionprotected static classSpecialized subclass that allows access to the running StreamPumper. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class PumpStreamHandler
createProcessErrorPump, createProcessOutputPump, createPump, createPump, createPump, finish, getErr, getOut, setProcessErrorStream, setProcessInputStream, setProcessOutputStream, start, stopModifier and TypeMethodDescriptionprotected voidCreate the pump to handle error output.protected voidCreate the pump to handle process output.protected ThreadcreatePump(InputStream is, OutputStream os) Creates a stream pumper to copy the given input stream to the given output stream.protected ThreadcreatePump(InputStream is, OutputStream os, boolean closeWhenExhausted) Creates a stream pumper to copy the given input stream to the given output stream.protected ThreadcreatePump(InputStream is, OutputStream os, boolean closeWhenExhausted, boolean nonBlockingIO) Creates a stream pumper to copy the given input stream to the given output stream.protected final voidWaits for a thread to finish while trying to make it finish quicker by stopping the pumper (if the thread is aThreadWithPumperinstance) or interrupting the thread.protected OutputStreamgetErr()Get the error stream.protected OutputStreamgetOut()Get the output stream.voidSet theInputStreamfrom which to read the standard error of the process.voidSet theOutputStreamby means of which input can be sent to the process.voidSet theInputStreamfrom which to read the standard output of the process.voidstart()Start theThreads.voidstop()Stop pumping the streams.
-
Constructor Details
-
JUnitLogStreamHandler
Constructor.- Parameters:
task- the task to log.outlevel- the level to use for standard output.errlevel- the level to use for error output.
-