conor 2003/02/16 06:04:28
Modified: src/main/org/apache/tools/ant/taskdefs StreamPumper.java Log: Catch more than IOExceptions in stream pumper to take care of strange close conditions where another thread can close the stream after the ensureOpen check has been done. PR: 13372 Revision Changes Path 1.11 +1 -1 ant/src/main/org/apache/tools/ant/taskdefs/StreamPumper.java Index: StreamPumper.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/StreamPumper.java,v retrieving revision 1.10 retrieving revision 1.11 diff -u -w -u -r1.10 -r1.11 --- StreamPumper.java 10 Feb 2003 14:13:36 -0000 1.10 +++ StreamPumper.java 16 Feb 2003 14:04:28 -0000 1.11 @@ -122,7 +122,7 @@ if (closeWhenExhausted) { os.close(); } - } catch (IOException e) { + } catch (Exception e) { // ignore errors } finally { synchronized (this) {