From 0f8074d340a7c12ede4eb4fb8e4a4bfb0dea146d Mon Sep 17 00:00:00 2001 From: Matthew Jason Benson Date: Wed, 18 Aug 2004 16:34:10 +0000 Subject: [PATCH] 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 --- src/main/org/apache/tools/ant/util/ConcatFileInputStream.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/org/apache/tools/ant/util/ConcatFileInputStream.java b/src/main/org/apache/tools/ant/util/ConcatFileInputStream.java index b65a40ff1..d7a6e9d98 100755 --- a/src/main/org/apache/tools/ant/util/ConcatFileInputStream.java +++ b/src/main/org/apache/tools/ant/util/ConcatFileInputStream.java @@ -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