Browse Source

close using FileUtils.close

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@453156 13f79535-47bb-0310-9956-ffa450edef68
master
Steve Loughran 18 years ago
parent
commit
329d23fb88
1 changed files with 2 additions and 7 deletions
  1. +2
    -7
      src/main/org/apache/tools/ant/taskdefs/optional/PropertyFile.java

+ 2
- 7
src/main/org/apache/tools/ant/taskdefs/optional/PropertyFile.java View File

@@ -37,6 +37,7 @@ import java.util.Properties;
import java.util.Vector;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Task;
import org.apache.tools.ant.util.FileUtils;
import org.apache.tools.ant.types.EnumeratedAttribute;

/**
@@ -213,13 +214,7 @@ public class PropertyFile extends Task {
} catch (IOException ioe) {
throw new BuildException(ioe, getLocation());
} finally {
if (bos != null) {
try {
bos.close();
} catch (IOException ioex) {
// ignore
}
}
FileUtils.close(bos);
}
}



Loading…
Cancel
Save