Author: stevel Date: Thu Oct 5 02:24:11 2006 New Revision: 453156 URL: http://svn.apache.org/viewvc?view=rev&rev=453156 Log: close using FileUtils.close
Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/PropertyFile.java Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/PropertyFile.java URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/PropertyFile.java?view=diff&rev=453156&r1=453155&r2=453156 ============================================================================== --- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/PropertyFile.java (original) +++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/PropertyFile.java Thu Oct 5 02:24:11 2006 @@ -37,6 +37,7 @@ 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 @@ } catch (IOException ioe) { throw new BuildException(ioe, getLocation()); } finally { - if (bos != null) { - try { - bos.close(); - } catch (IOException ioex) { - // ignore - } - } + FileUtils.close(bos); } } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]