donaldp 01/12/29 15:57:38
Modified:
proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/pvcs
Pvcs.java
Log:
Update to use new format of LogOutputStream where you pass in a Logger
Revision Changes Path
1.12 +4 -3
jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/pvcs/Pvcs.java
Index: Pvcs.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/pvcs/Pvcs.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- Pvcs.java 23 Dec 2001 14:22:47 -0000 1.11
+++ Pvcs.java 29 Dec 2001 23:57:38 -0000 1.12
@@ -365,7 +365,8 @@
tmp = new File( "pvcs_ant_" + rand.nextLong() + ".log" );
tmp2 = new File( "pvcs_ant_" + rand.nextLong() + ".log" );
getLogger().debug( "Executing " + commandLine.toString() );
- result = runCmd( commandLine, new FileOutputStream( tmp ), new
LogOutputStream( this, Project.MSG_WARN ) );
+ result = runCmd( commandLine, new FileOutputStream( tmp ),
+ new LogOutputStream( getLogger(), true ) );
if( result != 0 && !ignorerc )
{
String msg = "Failed executing: " + commandLine.toString();
@@ -407,8 +408,8 @@
commandLine.createArgument().setValue( "@" +
tmp2.getAbsolutePath() );
getLogger().info( "Getting files" );
getLogger().debug( "Executing " + commandLine.toString() );
- final LogOutputStream output = new LogOutputStream( this,
Project.MSG_INFO );
- final LogOutputStream error = new LogOutputStream( this,
Project.MSG_WARN );
+ final LogOutputStream output = new LogOutputStream( getLogger(),
false );
+ final LogOutputStream error = new LogOutputStream( getLogger(),
true );
result = runCmd( commandLine, output, error );
if( result != 0 && !ignorerc )
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>