[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jgit-dev] Java NIO Options

I was trying to use JimFS with JGit to see if I could get an efficient in memory repository built. All documentation states that the InMemoryRepository should not be used outside of testing or simple experiments while for some use cases it is also not sufficiently secure to access the default file system.

Currently JGit's interface and implementation is coded directly against the java.io.File. This precludes any possibility of interopping directly with nio classes. While a java.nio.Path has a toFile option, the toFile implementation in JimFS correctly throws an UnsupportedOperationException. When the java.io.File instance is created, the FileSystem is set to the DefaultFileSystem and cannot be overridden (private static final).Â

Has there been any thought to adding additional operations to support Paths as arguments and changing the File based api to call to the Path api?


Thanks

Aaron