ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r384202 - /ant/core/trunk/src/main/org/apache/tools/ant/ComponentHelper.java
Date Wed, 08 Mar 2006 12:44:14 GMT
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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message