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/sitraka CovReport.java
Date Sat, 29 Dec 2001 23:58:22 GMT
donaldp     01/12/29 15:58:22

  Modified:    proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/sitraka
                        CovReport.java
  Log:
  Update to use new format of LogOutputStream where you pass in a Logger
  
  Revision  Changes    Path
  1.12      +7 -9      jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/sitraka/CovReport.java
  
  Index: CovReport.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/sitraka/CovReport.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- CovReport.java	23 Dec 2001 14:22:47 -0000	1.11
  +++ CovReport.java	29 Dec 2001 23:58:22 -0000	1.12
  @@ -203,7 +203,7 @@
       {
           if( coveragePath == null )
           {
  -            coveragePath = new Path( getProject() );
  +            coveragePath = new Path();
           }
           return coveragePath.createPath();
       }
  @@ -221,7 +221,7 @@
       {
           if( sourcePath == null )
           {
  -            sourcePath = new Path( getProject() );
  +            sourcePath = new Path();
           }
           return sourcePath.createPath();
       }
  @@ -243,8 +243,8 @@
   
               // use the custom handler for stdin issues
               final Execute exe = new Execute();
  -            exe.setOutput( new LogOutputStream( this, Project.MSG_INFO ) );
  -            exe.setError( new LogOutputStream( this, Project.MSG_WARN ) );
  +            exe.setOutput( new LogOutputStream( getLogger(), false ) );
  +            exe.setError( new LogOutputStream( getLogger(), true ) );
               getLogger().debug( cmdl.toString() );
               exe.setCommandline( cmdl.getCommandline() );
               int exitValue = exe.execute();
  @@ -291,7 +291,7 @@
           // as a default -sourcepath use . in JProbe, so use project .
           if( sourcePath == null )
           {
  -            sourcePath = new Path( getProject() );
  +            sourcePath = new Path();
               sourcePath.createPath().setLocation( getBaseDirectory() );
           }
           v.add( "-sourcepath=" + sourcePath );
  @@ -301,9 +301,7 @@
               v.add( "-inc_src_text=" + ( includeSource ? "on" : "off" ) );
           }
   
  -        String[] params = new String[ v.size() ];
  -        v.copyInto( params );
  -        return params;
  +        return (String[])v.toArray( new String[ v.size() ] );
       }
   
       /**
  @@ -365,7 +363,7 @@
           {
               if( classPath == null )
               {
  -                classPath = new Path( CovReport.this.getProject() );
  +                classPath = new Path();
               }
               return classPath.createPath();
           }
  
  
  

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