[jboss-jira] [JBoss JIRA] (JBVFS-147) Cannot read from vfs: protocol URL

ricardo wolosker (JIRA) issues at jboss.org
Wed Jul 29 18:02:03 EDT 2015


    [ https://issues.jboss.org/browse/JBVFS-147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13094079#comment-13094079 ] 

ricardo wolosker commented on JBVFS-147:
----------------------------------------

It seems to me that this does not fit the cases where it is necessary to pass the physical path of the files, for example to use the EclipseCompiler ECJ embedded.

Because in these cases, no use to mount the file via MountHandle handle = VFS.mountZip (jarFile, jarFile, tempFileProvider);


> Cannot read from vfs: protocol URL
> ----------------------------------
>
>                 Key: JBVFS-147
>                 URL: https://issues.jboss.org/browse/JBVFS-147
>             Project: JBoss VFS
>          Issue Type: Bug
>    Affects Versions: 3.0.0.CR3
>            Reporter: Thomas Diesler
>            Assignee: John Bailey
>
> Cannot read bytes from vfs: protocol URL
> URL url = new URL("vfs:/home/tdiesler/svn/jboss-osgi/projects/testing/trunk/target/test-libs/example-simple.jar/");
> URLConnection con = (URLConnection)url.openConnection();
> InputStream inputStream = con.getInputStream();
> int read = inputStream.read();
> read is -1



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jboss-jira mailing list