diff --git a/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/exec/LogStreamHandler.java b/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/exec/LogStreamHandler.java index de64e5034..de969b0af 100644 --- a/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/exec/LogStreamHandler.java +++ b/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/exec/LogStreamHandler.java @@ -8,8 +8,8 @@ package org.apache.tools.ant.taskdefs.exec; import java.io.IOException; +import java.io.OutputStream; import org.apache.myrmidon.api.TaskException; -import org.apache.tools.ant.Task; /** * Logs standard output and error of a subprocess to the log system of ant. @@ -19,17 +19,9 @@ import org.apache.tools.ant.Task; public class LogStreamHandler extends PumpStreamHandler { - /** - * Creates a new instance of this class. - * - * @param task the task for whom to log - * @param outlevel the loglevel used to log standard output - * @param errlevel the loglevel used to log standard error - */ - public LogStreamHandler( Task task, int outlevel, int errlevel ) + public LogStreamHandler( final OutputStream output, final OutputStream error ) { - super( new LogOutputStream( task, outlevel ), - new LogOutputStream( task, errlevel ) ); + super( output, error ); } public void stop() diff --git a/proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/exec/LogStreamHandler.java b/proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/exec/LogStreamHandler.java index de64e5034..de969b0af 100644 --- a/proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/exec/LogStreamHandler.java +++ b/proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/exec/LogStreamHandler.java @@ -8,8 +8,8 @@ package org.apache.tools.ant.taskdefs.exec; import java.io.IOException; +import java.io.OutputStream; import org.apache.myrmidon.api.TaskException; -import org.apache.tools.ant.Task; /** * Logs standard output and error of a subprocess to the log system of ant. @@ -19,17 +19,9 @@ import org.apache.tools.ant.Task; public class LogStreamHandler extends PumpStreamHandler { - /** - * Creates a new instance of this class. - * - * @param task the task for whom to log - * @param outlevel the loglevel used to log standard output - * @param errlevel the loglevel used to log standard error - */ - public LogStreamHandler( Task task, int outlevel, int errlevel ) + public LogStreamHandler( final OutputStream output, final OutputStream error ) { - super( new LogOutputStream( task, outlevel ), - new LogOutputStream( task, errlevel ) ); + super( output, error ); } public void stop()