[jboss-cvs] JBossAS SVN: r68572 - 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
Wed Dec 26 14:29:25 EST 2007
Author: alesj
Date: 2007-12-26 14:29:25 -0500 (Wed, 26 Dec 2007)
New Revision: 68572
Modified:
projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/jar/JarEntryContents.java
Log:
Find child for entry is directory, using parent.
Modified: projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/jar/JarEntryContents.java
===================================================================
--- projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/jar/JarEntryContents.java 2007-12-26 19:11:19 UTC (rev 68571)
+++ projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/jar/JarEntryContents.java 2007-12-26 19:29:25 UTC (rev 68572)
@@ -134,10 +134,12 @@
initNestedJar();
return njar.findChild(path);
}
- else
+ else if (getEntry().isDirectory())
{
- throw new FileNotFoundException("JarEntryContents(" + getName() + ") has no children");
+ checkParentExists();
+ return getParent().findChild(getEntry().getName() + path);
}
+ throw new FileNotFoundException("JarEntryContents(" + getName() + ") has no children");
}
// Convience attribute accessors
More information about the jboss-cvs-commits
mailing list