Package org.apache.tools.ant.taskdefs
Class LogStreamHandler
java.lang.Object
org.apache.tools.ant.taskdefs.PumpStreamHandler
org.apache.tools.ant.taskdefs.LogStreamHandler
- All Implemented Interfaces:
ExecuteStreamHandler
public class LogStreamHandler extends PumpStreamHandler
Logs standard output and error of a subprocess to the log system of ant.
- Since:
- Ant 1.2
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.tools.ant.taskdefs.PumpStreamHandler
PumpStreamHandler.ThreadWithPumper
-
Constructor Summary
Constructors Constructor Description LogStreamHandler(ProjectComponent pc, int outlevel, int errlevel)
Creates log stream handlerLogStreamHandler(Task task, int outlevel, int errlevel)
Creates log stream handler -
Method Summary
Modifier and Type Method Description void
stop()
Stop the log stream handler.Methods inherited from class org.apache.tools.ant.taskdefs.PumpStreamHandler
createProcessErrorPump, createProcessOutputPump, createPump, createPump, createPump, finish, getErr, getOut, setProcessErrorStream, setProcessInputStream, setProcessOutputStream, start
-
Constructor Details
-
LogStreamHandler
Creates log stream handler- Parameters:
task
- the task for whom to logoutlevel
- the loglevel used to log standard outputerrlevel
- the loglevel used to log standard error
-
LogStreamHandler
Creates log stream handler- Parameters:
pc
- the project component for whom to logoutlevel
- the loglevel used to log standard outputerrlevel
- the loglevel used to log standard error
-
-
Method Details
-
stop
public void stop()Stop the log stream handler.- Specified by:
stop
in interfaceExecuteStreamHandler
- Overrides:
stop
in classPumpStreamHandler
-