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();