ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r792961 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Jar.java
Date Fri, 10 Jul 2009 14:27:06 GMT
Author: bodewig
Date: Fri Jul 10 14:27:06 2009
New Revision: 792961

URL: http://svn.apache.org/viewvc?rev=792961&view=rev
Log:
whitespace

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

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Jar.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Jar.java?rev=792961&r1=792960&r2=792961&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Jar.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Jar.java Fri Jul 10 14:27:06 2009
@@ -1088,18 +1088,17 @@
                 org.apache.tools.zip.ZipEntry ze =
                     (org.apache.tools.zip.ZipEntry) entries.nextElement();
                 String name = ze.getName();
-                    if (ze.isDirectory()) {
-                        dirSet.add(name);
-                    } else if (name.indexOf("/") == -1) {
-                        files.add(name);
-                    } else {
-                        // a file, not in the root
-                        // since the jar may be one without directory
-                        // entries, add the parent dir of this file as
-                        // well.
-                        dirSet.add(name.substring(0,
-                                                  name.lastIndexOf("/") + 1));
-                    }
+                if (ze.isDirectory()) {
+                    dirSet.add(name);
+                } else if (name.indexOf("/") == -1) {
+                    files.add(name);
+                } else {
+                    // a file, not in the root
+                    // since the jar may be one without directory
+                    // entries, add the parent dir of this file as
+                    // well.
+                    dirSet.add(name.substring(0, name.lastIndexOf("/") + 1));
+                }
             }
             dirs.addAll(dirSet);
         } finally {



Mime
View raw message