From 4856ac66d88c7532fc1548bcbd8b21fe744a4d91 Mon Sep 17 00:00:00 2001 From: Conor MacNeill Date: Sun, 16 Feb 2003 14:04:28 +0000 Subject: [PATCH] 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 git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274091 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/taskdefs/StreamPumper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/StreamPumper.java b/src/main/org/apache/tools/ant/taskdefs/StreamPumper.java index 2d1d4aee1..17de047f1 100644 --- a/src/main/org/apache/tools/ant/taskdefs/StreamPumper.java +++ b/src/main/org/apache/tools/ant/taskdefs/StreamPumper.java @@ -122,7 +122,7 @@ public class StreamPumper implements Runnable { if (closeWhenExhausted) { os.close(); } - } catch (IOException e) { + } catch (Exception e) { // ignore errors } finally { synchronized (this) {