Browse Source

use FileUtils.close to close the Reader open for the crash file

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@464359 13f79535-47bb-0310-9956-ffa450edef68
master
Antoine Levy-Lambert 18 years ago
parent
commit
45b244fd64
1 changed files with 1 additions and 5 deletions
  1. +1
    -5
      src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java

+ 1
- 5
src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java View File

@@ -1028,11 +1028,7 @@ public class JUnitTask extends Task {
e.printStackTrace();
// ignored.
} finally {
try {
br.close();
} catch (IOException ioe) {
// nothing
}
FileUtils.close(br);
}
if (watchdog != null && watchdog.killedProcess()) {
result.timedOut = true;


Loading…
Cancel
Save