How to mount custom Virtual File System
Hello,
I am trying to write a plugin that will 'mount' a custom file system in memory. I have been looking thru idea and plugin code and have been able to create a custom virtual file system implementation. The roadblock I am hitting is how to mount or get the root of the filesystem into the project. Any help or direction on what sources to look at is appreciated.
Regards,
Christian
Please sign in to leave a comment.
There is no concept of "mounting" filesystems in IDEA. To make the files in your filesystem visible as part of a project, you can add the URL of a directory in your filesystem as a content root of a module or a library root.
Thanks Dmitry,
I saw some posts about that but am still struggling. Part of that may be because I have been out of the Java loop for a while plus a lot of the plugins I have been looking at are a little more sophisticated than what I probably need to get started. I am also a bit confused by the use of DepreciatedFileSystem. I see its used a lot, is it supposed to be?
Looking thru some of the webcasts and blogs I came across webstorms remote file syncronization which may be more appropriate for my needs. Is there the ability to write a plugin that add a custom remote system for this feature?
Regards,
Christian
DeprecatedFileSystem is an unfortunate name. There is really nothing deprecated about this class; it's still fully supported.
The FTP deployment plugin does not use IntelliJ IDEA's virtual file system infrastructure and is not really designed for extensibility.
Thanks Dmitry,
If possible can you (or anyone) explain why the '!' is used in the url 'jar://D:/PluginProblem/junit-4.1.jar!/' referenced in this thread: http://devnet.jetbrains.com/message/5185004#5185004
Regards,
Christian
This is the URL syntax used by IntelliJ IDEA. The "!/" component separates the filesystem path from the path inside the jar file.