conor 2003/02/06 04:38:05
Modified: src/main/org/apache/tools/ant/taskdefs StreamPumper.java
Log:
Remove sleep from the stream pumper. I can't see the reason for this.
Revision Changes Path
1.8 +2 -5
jakarta-ant/src/main/org/apache/tools/ant/taskdefs/StreamPumper.java
Index: StreamPumper.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/StreamPumper.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -w -u -r1.7 -r1.8
--- StreamPumper.java 15 Apr 2002 14:56:29 -0000 1.7
+++ StreamPumper.java 6 Feb 2003 12:38:05 -0000 1.8
@@ -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 @@
// 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 @@
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;