Browse Source

close stream so that unit tests can delete the output directory.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@690970 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 17 years ago
parent
commit
ec569ea63a
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/main/org/apache/tools/ant/taskdefs/optional/junit/FailureRecorder.java

+ 4
- 0
src/main/org/apache/tools/ant/taskdefs/optional/junit/FailureRecorder.java View File

@@ -200,6 +200,10 @@ public class FailureRecorder extends DataType implements JUnitResultFormatter, B
* {@inheritDoc}
*/
public void setOutput(OutputStream out) {
// unused, close output file so it can be deleted before the VM exits
if (out != System.out) {
FileUtils.close(out);
}
}
/**


Loading…
Cancel
Save