mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
[java] drops outdated JRT layout support
This commit is contained in:
@@ -74,7 +74,6 @@ class JrtHandler extends ArchiveHandler {
|
||||
}
|
||||
else {
|
||||
File file = new File(path, "lib/jrt-fs.jar");
|
||||
if (!file.exists()) file = new File(path, "jrt-fs.jar");
|
||||
if (!file.exists()) throw new IOException("Missing provider: " + file);
|
||||
URL url = file.toURI().toURL();
|
||||
ClassLoader loader = new URLClassLoader(new URL[]{url}, null);
|
||||
|
||||
@@ -29,7 +29,7 @@ public abstract class JrtFileSystem extends ArchiveFileSystem {
|
||||
public static final String SEPARATOR = URLUtil.JAR_SEPARATOR;
|
||||
|
||||
public static boolean isModularJdk(@NotNull String homePath) {
|
||||
return new File(homePath, "lib/jrt-fs.jar").isFile() || new File(homePath, "jrt-fs.jar").isFile();
|
||||
return new File(homePath, "lib/jrt-fs.jar").isFile();
|
||||
}
|
||||
|
||||
public static boolean isRoot(@NotNull VirtualFile file) {
|
||||
|
||||
Reference in New Issue
Block a user