[jboss-cvs] JBossAS SVN: r73798 - projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/jar.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu May 29 09:23:01 EDT 2008
Author: alesj
Date: 2008-05-29 09:23:01 -0400 (Thu, 29 May 2008)
New Revision: 73798
Modified:
projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/jar/NestedJarFromStream.java
Log:
Fix directory handling in nested jar from stream.
Modified: projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/jar/NestedJarFromStream.java
===================================================================
--- projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/jar/NestedJarFromStream.java 2008-05-29 13:19:16 UTC (rev 73797)
+++ projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/jar/NestedJarFromStream.java 2008-05-29 13:23:01 UTC (rev 73798)
@@ -157,8 +157,15 @@
String url = toURI().toASCIIString() + "!/" + wrapper.getName();
URL jecURL = new URL(url);
VFSContext context = parent.getVFSContext();
- byte[] contents = wrapper.getExtra();
- return new JarEntryContents(context, parent, wrapper.getEntry(), entryName, toURL(), jecURL, contents);
+ if (wrapper.isDirectory())
+ {
+ return new SynthenticDirEntryHandler(context, parent, entryName, System.currentTimeMillis(), jecURL);
+ }
+ else
+ {
+ byte[] contents = wrapper.getExtra();
+ return new JarEntryContents(context, parent, wrapper.getEntry(), entryName, toURL(), jecURL, contents);
+ }
}
catch (Throwable t)
{
More information about the jboss-cvs-commits
mailing list