ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/util ConcatFileInputStream.java
Date Thu, 19 Aug 2004 19:06:47 GMT
mbenson     2004/08/19 12:06:47

  Modified:    src/main/org/apache/tools/ant/util
                        ConcatFileInputStream.java
  Log:
  Log if unable to open a File.
  
  Revision  Changes    Path
  1.3       +7 -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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ConcatFileInputStream.java	18 Aug 2004 16:34:10 -0000	1.2
  +++ ConcatFileInputStream.java	19 Aug 2004 19:06:46 -0000	1.3
  @@ -99,8 +99,13 @@
           closeCurrent();
           if (file != null && index < file.length) {
               log("Opening " + file[index], Project.MSG_VERBOSE);
  -            currentStream = new BufferedInputStream(
  -                new FileInputStream(file[index]));
  +            try {
  +                currentStream = new BufferedInputStream(
  +                    new FileInputStream(file[index]));
  +            } catch (IOException eyeOhEx) {
  +                log("Failed to open " + file[index], Project.MSG_ERR);
  +                throw eyeOhEx;
  +            }
           } else {
               eof = true;
           }
  
  
  

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


Mime
View raw message