|
[
Permlink
| « Hide
]
Scott added a comment - 25/Aug/08 03:07 PM
Attaching source.
Scott,
Thanks for sharing this! I tried to get it running and ran into a few minor snags, so dove into it and created a updated version. This should live in the jackrabbit sandbox, but doesn't seem to be there yet. So, here's an updated version that works for the current jackrabbit 1.5-SNAPSHOT (as of today). cheers, Jason Here's what changed: M src/test/java/org/jcrutil/VfsTest.java M src/main/java/org/jcrutil/JcrFileSystem.java M src/main/java/org/jcrutil/JcrFileObject.java M pom.xml Updated VfsTest to close the filesystem when the test is in tearDown(). This allows the underlying Jackrabbit JCR to properly close the session. If this isn't done, other VFS or Jackrabbit clients may not be able to use the same repository (as in: other tests using JCR). Added close() method to the JcrFileSystem that closes the JCR session when the FileSystem is being closed. Updated JcrFileObject doIsReadable() and doIsWriteable() to use the updated jackrabbit-core-1.5-SNAPSHOT PrivilegeRegistry class. The PrivilegeRegistry had been refactored in the trunk, and caused the compile to fail. Also fixed a IOException constructor that wraps and rethrows any problems from close(). Added <repositories> for jets3t and apache-snapshots to the pom.xml, and changedthe commons-vfs groupId and version to 1.0, so they can be found by others. Committed the component and the modifications in revision 698501. Thanks!
> as jukka committed the code, this issue can be resolved, can't it?
Sure, thanks! I don't know why I didn't resolve the issue already before. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||