Browse Source

whitespace

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@792961 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 16 years ago
parent
commit
5a534d1146
1 changed files with 11 additions and 12 deletions
  1. +11
    -12
      src/main/org/apache/tools/ant/taskdefs/Jar.java

+ 11
- 12
src/main/org/apache/tools/ant/taskdefs/Jar.java View File

@@ -1088,18 +1088,17 @@ public class Jar extends Zip {
org.apache.tools.zip.ZipEntry ze = org.apache.tools.zip.ZipEntry ze =
(org.apache.tools.zip.ZipEntry) entries.nextElement(); (org.apache.tools.zip.ZipEntry) entries.nextElement();
String name = ze.getName(); 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); dirs.addAll(dirSet);
} finally { } finally {


Loading…
Cancel
Save