You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by mb...@apache.org on 2004/08/18 18:34:11 UTC

cvs commit: ant/src/main/org/apache/tools/ant/util ConcatFileInputStream.java

mbenson     2004/08/18 09:34:10

  Modified:    src/main/org/apache/tools/ant/util
                        ConcatFileInputStream.java
  Log:
  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.
  
  Revision  Changes    Path
  1.2       +1 -2      ant/src/main/org/apache/tools/ant/util/ConcatFileInputStream.java
  
  Index: ConcatFileInputStream.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/util/ConcatFileInputStream.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ConcatFileInputStream.java	27 Mar 2004 21:22:58 -0000	1.1
  +++ ConcatFileInputStream.java	18 Aug 2004 16:34:10 -0000	1.2
  @@ -33,7 +33,7 @@
   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 ConcatFileInputStream(File[] file) throws IOException {
           this.file = file;
  -        openFile(currentIndex);
       }
   
       // inherit doc
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org