"jason.greene(a)jboss.com" wrote : The use case is you have some files you want to make into a deployment. The VFS is not supposed to be a virtual deployment API, event though it keeps getting hacked to be one.
To be very clear, I have my own Deployment type. But in the end deployable types are backed by some file-esque archive. And I happen to be using the vfsmemory backend. So I expect it to support the full range of operations permitted upon VirtualFile.
S,
ALR
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247707#4247707
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247707
"ALRubinger" wrote :
| Use case:
|
| I have a vfsmemory archive. I want to copy its contents as a flat directory. With other VirtualFileHandler impls this is possible, but not currently memory. Which to me is a hole in the abstraction layer.
|
vfsmemory is not a use case, is a solution (a bad one at that). The use case is you have some files you want to make into a deployment. The VFS is not supposed to be a virtual deployment API, event though it keeps getting hacked to be one.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247703#4247703
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247703
"jason.greene" wrote : Part of the reason for issues with the current VFS impl is that everyone treats it like some magic silver-bullet and keeps hacking it to solve problems that should be solved elsewhere.
Let's forget for a moment that JBossWeb has this dependency upon a flat file structure. They've identified this and will be correcting it in the future.
Use case:
I have a vfsmemory archive. I want to copy its contents as a flat directory. With other VirtualFileHandler impls this is possible, but not currently memory. Which to me is a hole in the abstraction layer.
S,
ALR
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247701#4247701
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247701
"ALRubinger" wrote : "jason.greene(a)jboss.com" wrote : Why don't you just switch from vfsmrmory to using a file based VFS on a temp location for now, until we see what happens with VFS in trunk?
|
| I should write a new virtual archive impl just for this one case, which could be addressed through the addition of one overloaded method in VFS?
|
Is it really that hard to copy files into a temp dir and point the VFS at it?
Part of the reason for issues with the current VFS impl is that everyone treats it like some magic silver-bullet and keeps hacking it to solve problems that should be solved elsewhere.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247696#4247696
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247696