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/optional/ccm Continuus.java
Date Sat, 29 Dec 2001 23:53:42 GMT
donaldp     01/12/29 15:53:42

  Modified:    proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/ccm
                        Continuus.java
  Log:
  Update to use new format of LogOutputStream where you pass in a Logger
  
  Revision  Changes    Path
  1.12      +5 -1      jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/ccm/Continuus.java
  
  Index: Continuus.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/ccm/Continuus.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- Continuus.java	23 Dec 2001 06:31:54 -0000	1.11
  +++ Continuus.java	29 Dec 2001 23:53:42 -0000	1.12
  @@ -14,6 +14,7 @@
   import org.apache.tools.ant.taskdefs.exec.Execute;
   import org.apache.tools.ant.taskdefs.exec.ExecuteStreamHandler;
   import org.apache.tools.ant.taskdefs.exec.LogStreamHandler;
  +import org.apache.tools.ant.taskdefs.exec.LogOutputStream;
   import org.apache.tools.ant.types.Commandline;
   
   /**
  @@ -127,6 +128,9 @@
       protected int run( final Commandline cmd )
           throws TaskException
       {
  -        return run( cmd, new LogStreamHandler( this, Project.MSG_VERBOSE, Project.MSG_WARN
) );
  +        final LogOutputStream output = new LogOutputStream( getLogger(), false );
  +        final LogOutputStream error = new LogOutputStream( getLogger(), true );
  +        final LogStreamHandler handler = new LogStreamHandler( output, error );
  +        return run( cmd, handler );
       }
   }
  
  
  

--
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