git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278319 13f79535-47bb-0310-9956-ffa450edef68master
@@ -244,13 +244,7 @@ public class ProjectHelper2 extends ProjectHelper { | |||||
+ buildFileName + ": " + exc.getMessage(), | + buildFileName + ": " + exc.getMessage(), | ||||
exc); | exc); | ||||
} finally { | } finally { | ||||
if (inputStream != null) { | |||||
try { | |||||
inputStream.close(); | |||||
} catch (IOException ioe) { | |||||
// ignore this | |||||
} | |||||
} | |||||
FileUtils.close(inputStream); | |||||
} | } | ||||
} | } | ||||
@@ -162,13 +162,7 @@ public class ProjectHelperImpl extends ProjectHelper { | |||||
throw new BuildException("Error reading project file: " | throw new BuildException("Error reading project file: " | ||||
+ exc.getMessage(), exc); | + exc.getMessage(), exc); | ||||
} finally { | } finally { | ||||
if (inputStream != null) { | |||||
try { | |||||
inputStream.close(); | |||||
} catch (IOException ioe) { | |||||
// ignore this | |||||
} | |||||
} | |||||
FileUtils.close(inputStream); | |||||
} | } | ||||
} | } | ||||