From 1ad79cdf7799076d5acedea9e3611c429e0c56ce Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Wed, 8 Mar 2006 12:44:14 +0000 Subject: [PATCH] closing git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@384202 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/ComponentHelper.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/main/org/apache/tools/ant/ComponentHelper.java b/src/main/org/apache/tools/ant/ComponentHelper.java index 618f21017..8fcfa85dc 100644 --- a/src/main/org/apache/tools/ant/ComponentHelper.java +++ b/src/main/org/apache/tools/ant/ComponentHelper.java @@ -38,6 +38,7 @@ import java.lang.reflect.InvocationTargetException; import org.apache.tools.ant.taskdefs.Typedef; import org.apache.tools.ant.taskdefs.Definer; import org.apache.tools.ant.launch.Launcher; +import org.apache.tools.ant.util.FileUtils; /** * Component creation and configuration. @@ -736,13 +737,7 @@ public class ComponentHelper { } catch (IOException ex) { throw new BuildException(ERROR_NO_TASK_LIST_LOAD); } finally { - if (in != null) { - try { - in.close(); - } catch (Exception ignore) { - // Ignore - } - } + FileUtils.close(in); } }