diff options
author | Thomas Watson | 2009-04-17 22:42:12 +0000 |
---|---|---|
committer | Thomas Watson | 2009-04-17 22:42:12 +0000 |
commit | 10059116ef4451b34e4c41e69ad367403f6b42b3 (patch) | |
tree | 67cb8a15d72b6e3817579001aa6bcbcc27a40a5f | |
parent | 95eb8dad9ebde23c5fcdb052c0ec6aa8704e86d7 (diff) | |
download | rt.equinox.framework-10059116ef4451b34e4c41e69ad367403f6b42b3.tar.gz rt.equinox.framework-10059116ef4451b34e4c41e69ad367403f6b42b3.tar.xz rt.equinox.framework-10059116ef4451b34e4c41e69ad367403f6b42b3.zip |
Bug 155465 FileBundleEntry should return names ending in '/' for directory entries
-rw-r--r-- | bundles/org.eclipse.osgi/defaultAdaptor/src/org/eclipse/osgi/baseadaptor/bundlefile/BundleFile.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bundles/org.eclipse.osgi/defaultAdaptor/src/org/eclipse/osgi/baseadaptor/bundlefile/BundleFile.java b/bundles/org.eclipse.osgi/defaultAdaptor/src/org/eclipse/osgi/baseadaptor/bundlefile/BundleFile.java index 86b4b5059..35d4cc5fe 100644 --- a/bundles/org.eclipse.osgi/defaultAdaptor/src/org/eclipse/osgi/baseadaptor/bundlefile/BundleFile.java +++ b/bundles/org.eclipse.osgi/defaultAdaptor/src/org/eclipse/osgi/baseadaptor/bundlefile/BundleFile.java @@ -217,6 +217,8 @@ abstract public class BundleFile { if (path.charAt(0) != '/') path = '/' + path; String name = entry.getName(); + if (name.length() == 0) + return path; boolean pathSlash = path.charAt(path.length() - 1) == '/'; boolean entrySlash = name.length() > 0 && name.charAt(name.length() - 1) == '/'; if (entrySlash != pathSlash) { |