Commit ca239e21 authored by Iurii.Sukhanov's avatar Iurii.Sukhanov Committed by intellij-monorepo-bot
Browse files

The Rider Apatch

(cherry picked from commit 84558a66e4ce89f1643b2dee814bebaf39ef7d1a)

GitOrigin-RevId: bc346cf032cfab6e28f21dd7c2e3ee60b07d0ed1
parent 2f372bce
Branches unavailable Tags unavailable
No related merge requests found
Showing with 3 additions and 0 deletions
+3 -0
......@@ -536,6 +536,7 @@ public final class JavaSdkImpl extends JavaSdk {
}
}
else {
LOG.info("Trying to get jdk classes roots, jdk home: " + jdkHome + ", isJre: " + isJre);
for (Path root : JavaSdkUtil.getJdkClassesRoots(jdkHome, isJre)) {
result.add(VfsUtil.getUrlForLibraryRoot(root));
}
......
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.jps.model.java.impl;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.util.registry.Registry;
import com.intellij.util.containers.CollectionFactory;
import com.intellij.util.containers.ContainerUtil;
......@@ -19,6 +20,7 @@ public final class JavaSdkUtil {
public static @NotNull List<Path> getJdkClassesRoots(@NotNull Path home, boolean isJre) {
Path[] jarDirs;
Path fileName = home.getFileName();
Logger.getInstance(JavaSdkUtil.class).info("Jdk provided home is " + home);
if (fileName != null && "Home".equals(fileName.toString()) && Files.exists(home.resolve("../Classes/classes.jar"))) {
Path libDir = home.resolve("lib");
Path classesDir = home.resolveSibling("Classes");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment