You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by an...@apache.org on 2005/11/17 16:35:14 UTC

svn commit: r345265 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Expand.java

Author: antoine
Date: Thu Nov 17 07:35:08 2005
New Revision: 345265

URL: http://svn.apache.org/viewcvs?rev=345265&view=rev
Log:
cleanup of imports, use FileUtils.close, submitted by Kevin Jackson

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

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Expand.java
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Expand.java?rev=345265&r1=345264&r2=345265&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Expand.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Expand.java Thu Nov 17 07:35:08 2005
@@ -28,7 +28,6 @@
 import java.util.Vector;
 
 import org.apache.tools.ant.BuildException;
-import org.apache.tools.ant.DirectoryScanner;
 import org.apache.tools.ant.Project;
 import org.apache.tools.ant.Task;
 import org.apache.tools.ant.types.FileSet;
@@ -281,13 +280,7 @@
                     fos.close();
                     fos = null;
                 } finally {
-                    if (fos != null) {
-                        try {
-                            fos.close();
-                        } catch (IOException e) {
-                            // ignore
-                        }
-                    }
+                    FileUtils.close(fos);
                 }
             }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org