Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 36195 invoked from network); 29 Dec 2001 23:58:34 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 29 Dec 2001 23:58:34 -0000 Received: (qmail 19954 invoked by uid 97); 29 Dec 2001 23:58:38 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 19933 invoked by uid 97); 29 Dec 2001 23:58:37 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 19901 invoked by uid 97); 29 Dec 2001 23:58:34 -0000 Date: 29 Dec 2001 23:58:22 -0000 Message-ID: <20011229235822.3417.qmail@icarus.apache.org> From: donaldp@apache.org To: jakarta-ant-cvs@apache.org Subject: cvs commit: jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/sitraka CovReport.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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: For additional commands, e-mail: