[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: VFS and directory handling
alesj
do-not-reply at jboss.com
Thu May 29 09:50:40 EDT 2008
"scott.stark at jboss.org" wrote : A nested jar should simply be seen as a JarInputStream.
|
For NoCopy handling, I can't see any other way then doing either this
| // hack the JPA url
| VirtualFile root = di.getRootFile();
| URL url = root.toURL();
| String urlString = url.toExternalForm();
| if (urlString.startsWith("vfs"))
| {
| // unpack, since that's the only way
| // to make sure we point to file
| VirtualFile file = VFSUtils.unpack(root);
| url = file.toURL();
| urlString = url.toExternalForm();
| if (urlString.startsWith("vfs"))
| url = new URL(urlString.substring(3));
| }
| pi.setPersistenceUnitRootUrl(url);
|
or like I've already said, having this check
| ZipInputStream zis;
| if (is instanceof ZipInputStream)
| zis = (ZipInputStream)is;
| else
| zis = new ZipInputStream(is);
|
Since probably if you include zis into zis, you don't get anything.
At least that's what I've encountered recently when hacking facelets resource lookup.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4154297#4154297
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4154297
More information about the jboss-dev-forums
mailing list