ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r671687 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Tar.java
Date Wed, 25 Jun 2008 23:34:08 GMT
Author: mbenson
Date: Wed Jun 25 16:34:08 2008
New Revision: 671687

URL: http://svn.apache.org/viewvc?rev=671687&view=rev
Log:
simplify

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

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Tar.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Tar.java?rev=671687&r1=671686&r2=671687&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Tar.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Tar.java Wed Jun 25 16:34:08 2008
@@ -654,11 +654,7 @@
         } else if (rc.isFilesystemOnly()) {
             Iterator iter = rc.iterator();
             while (iter.hasNext()) {
-                FileResource r = ResourceUtils.asFileResource((FileProvider) iter.next());
-                File f = r.getFile();
-                if (f == null) {
-                    f = new File(r.getBaseDir(), r.getName());
-                }
+                File f = ((FileProvider) iter.next()).getFile();
                 tarFile(f, tOut, f.getName(), tfs);
             }
         } else { // non-file resources



Mime
View raw message