[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[jgit-dev] Java NIO Options
- From: Aaron Tull <atull@xxxxxxxxxxx>
- Date: Tue, 27 May 2014 16:59:14 -0700
- Delivered-to: email@example.com
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?