# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: /home/work/trunk-work/nb_all/core/startup/src/org/netbeans/core/startup/layers # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: SystemFileSystem.java --- /home/work/trunk-work/nb_all/core/startup/src/org/netbeans/core/startup/layers/SystemFileSystem.java Base (1.10) +++ /home/work/trunk-work/nb_all/core/startup/src/org/netbeans/core/startup/layers/SystemFileSystem.java Locally Modified (Based On 1.10) @@ -279,8 +279,22 @@ user = l; } else { // use some replacement + String customFSClass = System.getProperty("org.netbeans.core.systemfilesystem.custom"); // NOI18N + if (customFSClass != null) { + try { + Class clazz = Class.forName(customFSClass); + Object instance = clazz.newInstance(); + user = (FileSystem)instance; + } catch (Exception x) { + ModuleLayeredFileSystem.err.log( + Level.WARNING, + "Custom system file system writable layer init failed ", x); // NOI18N user = FileUtil.createMemoryFileSystem (); } + } else { + user = FileUtil.createMemoryFileSystem (); + } + } if (homeDir == null) { home = null;