org.apache.tools.ant.taskdefs

Class LogStreamHandler

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

Constructor Summary

LogStreamHandler(Task task, int outlevel, int errlevel)
Creates log stream handler

Method Summary

void
stop()
Stop the log stream handler.

Methods inherited from class org.apache.tools.ant.taskdefs.PumpStreamHandler

createProcessErrorPump, createProcessOutputPump, createPump, createPump, getErr, getOut, setProcessErrorStream, setProcessInputStream, setProcessOutputStream, start, stop

Constructor Details

LogStreamHandler

public LogStreamHandler(Task task,
                        int outlevel,
                        int errlevel)
Creates log stream handler

Parameters:
task - the task for whom to log
outlevel - the loglevel used to log standard output
errlevel - the loglevel used to log standard error

Method Details

stop

public void stop()
Stop the log stream handler.
Specified by:
stop in interface ExecuteStreamHandler
Overrides:
stop in interface PumpStreamHandler


Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.