Browse Source

Compile before commiting

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272197 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 23 years ago
parent
commit
a4f5be6a2d
1 changed files with 11 additions and 4 deletions
  1. +11
    -4
      src/main/org/apache/tools/ant/taskdefs/cvslib/RedirectingStreamHandler.java

+ 11
- 4
src/main/org/apache/tools/ant/taskdefs/cvslib/RedirectingStreamHandler.java View File

@@ -150,14 +150,21 @@ class RedirectingStreamHandler
// We cannot use a BufferedReader as the ready() method is bugged! // We cannot use a BufferedReader as the ready() method is bugged!
// (see Bug 4329985, which is supposed to be fixed in JDK1.4 : // (see Bug 4329985, which is supposed to be fixed in JDK1.4 :
//http://developer.java.sun.com/developer/bugParade/bugs/4329985.html) //http://developer.java.sun.com/developer/bugParade/bugs/4329985.html)
while( m_error.ready() )
try
{ {
final int value = m_error.read();
if( -1 != value )
while( m_error.ready() )
{ {
m_errors.append( (char)value );
final int value = m_error.read();
if( -1 != value )
{
m_errors.append( (char)value );
}
} }
} }
catch( final IOException ioe )
{
//ignore --> Means stderror has been shutdown
}
} }


/** /**


Loading…
Cancel
Save