From c71436048a1eccb129c2a84dda3199c7ca544711 Mon Sep 17 00:00:00 2001 From: Conor MacNeill Date: Thu, 6 Feb 2003 12:38:05 +0000 Subject: [PATCH] Remove sleep from the stream pumper. I can't see the reason for this. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274001 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/taskdefs/StreamPumper.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/StreamPumper.java b/src/main/org/apache/tools/ant/taskdefs/StreamPumper.java index 618e0ebe3..3e8400ffe 100644 --- a/src/main/org/apache/tools/ant/taskdefs/StreamPumper.java +++ b/src/main/org/apache/tools/ant/taskdefs/StreamPumper.java @@ -1,7 +1,7 @@ /* * The Apache Software License, Version 1.1 * - * Copyright (c) 2000,2002 The Apache Software Foundation. All rights + * Copyright (c) 2000,2002-2003 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without @@ -69,7 +69,6 @@ public class StreamPumper implements Runnable { // TODO: make SIZE and SLEEP instance variables. // TODO: add a status flag to note if an error occured in run. - private static final int SLEEP = 5; private static final int SIZE = 128; private InputStream is; private OutputStream os; @@ -104,11 +103,9 @@ public class StreamPumper implements Runnable { try { while ((length = is.read(buf)) > 0) { os.write(buf, 0, length); - try { - Thread.sleep(SLEEP); - } catch (InterruptedException e) {} } } catch (IOException e) { + // ignore errors } finally { synchronized (this) { finished = true;