You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by do...@apache.org on 2001/12/30 00:58:22 UTC
cvs commit: jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/sitraka CovReport.java
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>