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 Execute.java
Date Sun, 30 Dec 2001 00:02:06 GMT
donaldp     01/12/29 16:02:06

  Modified:    proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/exec
                        Execute.java
  Log:
  Update to use new format of LogOutputStream where you pass in a Logger
  
  Revision  Changes    Path
  1.21      +5 -3      jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/exec/Execute.java
  
  Index: Execute.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/exec/Execute.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- Execute.java	23 Dec 2001 14:22:45 -0000	1.20
  +++ Execute.java	30 Dec 2001 00:02:06 -0000	1.21
  @@ -18,6 +18,7 @@
   import org.apache.tools.ant.Project;
   import org.apache.tools.ant.Task;
   import org.apache.tools.ant.types.Commandline;
  +import org.apache.avalon.framework.logger.Logger;
   
   /**
    * Runs an external program.
  @@ -65,10 +66,11 @@
       {
           try
           {
  -            task.hackGetLogger().debug( Commandline.toString( cmdline ) );
  +            final Logger logger = task.hackGetLogger();
  +            logger.debug( Commandline.toString( cmdline ) );
               final Execute exe = new Execute();
  -            exe.setOutput( new LogOutputStream( task, Project.MSG_INFO ) );
  -            exe.setError( new LogOutputStream( task, Project.MSG_WARN ) );
  +            exe.setOutput( new LogOutputStream( logger, false ) );
  +            exe.setError( new LogOutputStream( logger, true ) );
   
               exe.setCommandline( cmdline );
               int retval = exe.execute();
  
  
  

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