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/metamata MParse.java
Date Sat, 29 Dec 2001 23:56:49 GMT
donaldp     01/12/29 15:56:49

  Modified:    proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/metamata
                        MParse.java
  Log:
  Update to use new format of LogOutputStream where you pass in a Logger
  
  Revision  Changes    Path
  1.13      +6 -3      jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/metamata/MParse.java
  
  Index: MParse.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/metamata/MParse.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- MParse.java	23 Dec 2001 14:22:46 -0000	1.12
  +++ MParse.java	29 Dec 2001 23:56:49 -0000	1.13
  @@ -18,6 +18,7 @@
   import org.apache.tools.ant.Task;
   import org.apache.tools.ant.taskdefs.exec.Execute;
   import org.apache.tools.ant.taskdefs.exec.ExecuteStreamHandler;
  +import org.apache.tools.ant.taskdefs.exec.LogOutputStream;
   import org.apache.tools.ant.taskdefs.exec.LogStreamHandler;
   import org.apache.tools.ant.types.Argument;
   import org.apache.tools.ant.types.CommandlineJava;
  @@ -150,7 +151,7 @@
       {
           if( classpath == null )
           {
  -            classpath = new Path( getProject() );
  +            classpath = new Path();
           }
           return classpath;
       }
  @@ -174,7 +175,7 @@
       {
           if( sourcepath == null )
           {
  -            sourcepath = new Path( getProject() );
  +            sourcepath = new Path();
           }
           return sourcepath;
       }
  @@ -385,7 +386,9 @@
        */
       protected ExecuteStreamHandler createStreamHandler()
       {
  -        return new LogStreamHandler( this, Project.MSG_INFO, Project.MSG_INFO );
  +        final LogOutputStream output = new LogOutputStream( getLogger(), false );
  +        final LogOutputStream error = new LogOutputStream( getLogger(), false );
  +        return new LogStreamHandler( output, error );
       }
   
       /**
  
  
  

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