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/dotnet NetCommand.java
Date Sun, 06 Jan 2002 02:08:08 GMT
donaldp     02/01/05 18:08:08

  Modified:    proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/dotnet
                        NetCommand.java
  Log:
  Use Execute2 abstraction
  
  Revision  Changes    Path
  1.15      +4 -6      jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.java
  
  Index: NetCommand.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- NetCommand.java	29 Dec 2001 23:54:30 -0000	1.14
  +++ NetCommand.java	6 Jan 2002 02:08:08 -0000	1.15
  @@ -12,8 +12,7 @@
   import org.apache.avalon.framework.logger.AbstractLogEnabled;
   import org.apache.myrmidon.api.TaskException;
   import org.apache.tools.ant.Task;
  -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;
   
   /**
  @@ -44,7 +43,7 @@
       /**
        * executabe
        */
  -    protected Execute _exe;
  +    protected Execute2 _exe;
   
       /**
        * flag to control action on execution trouble
  @@ -200,9 +199,8 @@
       {
           // default directory to the project's base directory
           File dir = _owner.getBaseDirectory();
  -        _exe = new Execute();
  -        _exe.setOutput( new LogOutputStream( _owner.hackGetLogger(), false ) );
  -        _exe.setError( new LogOutputStream( _owner.hackGetLogger(), true ) );
  +        _exe = new Execute2();
  +        setupLogger( _exe );
           _exe.setWorkingDirectory( dir );
       }
   }
  
  
  

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