Browse Source

Fix bug whereby the first file open was always logged to System.out.

Fix by opening only on demand so that managingTask can be set.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276787 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 21 years ago
parent
commit
0f8074d340
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      src/main/org/apache/tools/ant/util/ConcatFileInputStream.java

+ 1
- 2
src/main/org/apache/tools/ant/util/ConcatFileInputStream.java View File

@@ -33,7 +33,7 @@ import org.apache.tools.ant.Project;
public class ConcatFileInputStream extends InputStream {

private static final int EOF = -1;
private int currentIndex = 0;
private int currentIndex = -1;
private boolean eof = false;
private File[] file;
private InputStream currentStream;
@@ -47,7 +47,6 @@ public class ConcatFileInputStream extends InputStream {
*/
public ConcatFileInputStream(File[] file) throws IOException {
this.file = file;
openFile(currentIndex);
}

// inherit doc


Loading…
Cancel
Save