ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/exec LogStreamHandler.java
Date Sun, 30 Dec 2001 00:01:41 GMT
donaldp     01/12/29 16:01:41

  Modified:    proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/exec
                        LogStreamHandler.java
  Log:
  Pass in streams to constructor rather than task + level. This allows it to be more easily
configured for different tasks.
  
  Revision  Changes    Path
  1.3       +3 -11     jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/exec/LogStreamHandler.java
  
  Index: LogStreamHandler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/exec/LogStreamHandler.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- LogStreamHandler.java	23 Dec 2001 06:34:23 -0000	1.2
  +++ LogStreamHandler.java	30 Dec 2001 00:01:41 -0000	1.3
  @@ -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 @@
   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()
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message