Class Files

    • Method Detail

      • fromURL

        @NotNull
        public static IFile fromURL​(@NotNull
                                    URL url)
        Deprecated.
        Usually when one calls URL#getPath he expects the result to be without scheme. However in the case of the 'jar' scheme it is not true (nicely done, JDK!) Hence the hack to resolve 'jar:file://a.jar!/a.txt' like URI is to resolve two times.

        see jetbrains.mps.workbench.index.RootNodeNameIndex for a long and boring explanation

        fixme it is better to parse on our own [apyshkin]