commit | a57340a1d2af19a562763b8f6b119a31dc779182 | [log] [tgz] |
---|---|---|
author | Guillaume Nodet <gnodet@apache.org> | Mon Apr 26 16:23:20 2010 +0000 |
committer | Guillaume Nodet <gnodet@apache.org> | Mon Apr 26 16:23:20 2010 +0000 |
tree | 94ee0ae7e5dc46914bb71e5369c727540d422eab | |
parent | a54c8a67ba1dd70359191b935ad9d17ec4d5322c [diff] |
FELIX-2302: Fileinstall should add entries for directories when creating JARs git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@938112 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/fileinstall/src/main/java/org/apache/felix/fileinstall/internal/Util.java b/fileinstall/src/main/java/org/apache/felix/fileinstall/internal/Util.java index b098e16..b22c633 100644 --- a/fileinstall/src/main/java/org/apache/felix/fileinstall/internal/Util.java +++ b/fileinstall/src/main/java/org/apache/felix/fileinstall/internal/Util.java
@@ -375,7 +375,9 @@ File f = dirList[i]; if (f.isDirectory()) { - zipDir(f, zos, path + f.getName() + "/", exclusions); + String prefix = path + f.getName() + "/"; + zos.putNextEntry(new ZipEntry(prefix)); + zipDir(f, zos, prefix, exclusions); continue; } String entry = path + f.getName();