Which is automatically used by the vfs URL handler. So you can just return a url with
On Nov 16, 2012, at 3:01 PM, Jason Greene <jason.greene(a)redhat.com> wrote:
Sorry that I forgot to reply to this:
VirtualFile.openStream() is what I think you want
On Nov 14, 2012, at 10:40 AM, Scott Marlow <smarlow(a)redhat.com> wrote:
> It looks like the deployment root has the mounted VFS handle. From what
> I read in JBVFS-147 comments, there should only be one mounter of each
> deployment. So, I probably need to borrow the (private) mount handle
> from org.jboss.as.server.deployment.module.MountHandle.
> Something like the following:
> (deploymentRoot.getMountHandle().handle)).getMountSource() evaluates to
> my unit test
> which has what I need.
> On 11/13/2012 08:29 AM, Scott Marlow wrote:
>> One thing that I don't want to do, is to walk through deployments and
>> make separate file copies of the contents (that would slow the
>> deployment phase down).
>> I also don't want to give up on converting VFS urls to FILE urls.
>> Any other suggestions?
>> On 11/07/2012 03:53 PM, Scott Marlow wrote:
>>> We need a proper implementation of JPA getPersistenceUnitRootUrl():
>>> Returns the URL for the jar file or directory that is the root of the
>>> persistence unit. (If the persistence unit is rooted in the
>>> WEB-INF/classes directory, this will be the URL of that directory.)
>>> The URL will either be a file: URL referring to a jar file
>>> or referring to a directory that contains an exploded jar
>>> file, or some other URL from which an InputStream in jar
>>> format can be obtained.
>>> VFSFile.getPhysicalFile() doesn't seem to extract the children, so that
>>> isn't helpful by itself.
>>> Do we have something like VFSFile.getPhysicalFile() that gets a physical
>>> file representation of all of the files in a deployment root?
>>> jboss-as7-dev mailing list
>> jboss-as7-dev mailing list
> jboss-as7-dev mailing list
jboss-as7-dev mailing list