-
1. Re: Problem with VFS AbstractJarHandler / JarEntryHandler
starksm64 Nov 13, 2006 3:18 AM (in response to jason.greene)There is a problem with consistency of locating files in packed vs unpacked jars if jar entry .getName() values include the trailing slash since the corresponding file in the unpacked version does not. The VirtualFile.toURL() is what is not including the trailing '/'?
-
2. Re: Problem with VFS AbstractJarHandler / JarEntryHandler
jason.greene Nov 13, 2006 1:42 PM (in response to jason.greene)Yes toUR()L does not include the slash because it uses the default implementation which just returns the cached URL, and the URL that is constructed in AbstractJarHandler uses the stripped entry name.
Ok, since we need the entry name to have a stripped slash, I think the solution is to modify createVirtualFileHandler() in AbstractJarHandler to readd the slash to the URL that is passed to JarEntryHandler.
I can include this change in the WS deployer rework if you like.
-Jason -
3. Re: Problem with VFS AbstractJarHandler / JarEntryHandler
starksm64 Nov 13, 2006 2:46 PM (in response to jason.greene)Sure go ahead. The to URL should be returning the proper directory form and there is a org.jboss.test.virtual.test.FileVFSUnitTestCase.testDirURLs test in the mc container tests that should be expanded to pickup the current failing behavior.
-
4. Re: Problem with VFS AbstractJarHandler / JarEntryHandler
jason.greene Nov 14, 2006 7:24 PM (in response to jason.greene)Ok this is done, sorry it took awhile to get to it.