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/java/org/apache/antlib/cvslib Cvs.java
Date Sun, 06 Jan 2002 01:33:04 GMT
donaldp     02/01/05 17:33:04

  Modified:    proposal/myrmidon/src/java/org/apache/antlib/cvslib Cvs.java
  Log:
  Use new Execute2 abstraction
  
  Revision  Changes    Path
  1.13      +4 -6      jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/cvslib/Cvs.java
  
  Index: Cvs.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/cvslib/Cvs.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- Cvs.java	1 Jan 2002 06:16:24 -0000	1.12
  +++ Cvs.java	6 Jan 2002 01:33:04 -0000	1.13
  @@ -11,8 +11,7 @@
   import java.io.IOException;
   import org.apache.myrmidon.api.AbstractTask;
   import org.apache.myrmidon.api.TaskException;
  -import org.apache.tools.ant.taskdefs.exec.Execute;
  -import org.apache.tools.ant.taskdefs.exec.LogOutputStream;
  +import org.apache.tools.ant.taskdefs.exec.Execute2;
   import org.apache.tools.ant.types.Commandline;
   import org.apache.tools.ant.types.EnvironmentData;
   import org.apache.tools.ant.types.EnvironmentVariable;
  @@ -23,7 +22,7 @@
    * @author <a href="mailto:costin@dnt.ro">costin@dnt.ro</a>
    * @author <a href="mailto:stefano@apache.org">stefano@apache.org</a>
    * @author <a href="mailto:wwerner@picturesafe.de">Wolfgang Werner [wwerner@picturesafe.de]</a>
  - * @version $Revision: 1.12 $ $Date: 2002/01/01 06:16:24 $
  + * @version $Revision: 1.13 $ $Date: 2002/01/06 01:33:04 $
    */
   public class Cvs
       extends AbstractTask
  @@ -146,9 +145,8 @@
           final Commandline command = buildCommandline();
           final EnvironmentData env = buildEnvironment();
   
  -        final Execute exe = new Execute();
  -        exe.setOutput( new LogOutputStream( getLogger(), false ) );
  -        exe.setError( new LogOutputStream( getLogger(), true ) );
  +        final Execute2 exe = new Execute2();
  +        setupLogger( exe );
           if( m_dest == null ) m_dest = getBaseDirectory();
           exe.setWorkingDirectory( m_dest );
   
  
  
  

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