Browse Source

Log if unable to open a File.

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

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

@@ -99,8 +99,13 @@ public class ConcatFileInputStream extends InputStream {
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;
}


Loading…
Cancel
Save