Author: stevel
Date: Wed Mar  8 04:44:14 2006
New Revision: 384202

URL: http://svn.apache.org/viewcvs?rev=384202&view=rev
Log:
closing

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/ComponentHelper.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/ComponentHelper.java
URL: 
http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/ComponentHelper.java?rev=384202&r1=384201&r2=384202&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/ComponentHelper.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/ComponentHelper.java Wed Mar  
8 04:44:14 2006
@@ -38,6 +38,7 @@
 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 @@
         } 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);
         }
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to