mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
[tests] Remove the File.isDirectory check when creating mockJDK paths
- This check makes tests fail during initialization for all plugins developed outside the monorepo, where these mockJDK directories do not exist. GitOrigin-RevId: 0ecabe8e238581838a14a912bce341b30b153b14
This commit is contained in:
committed by
intellij-monorepo-bot
parent
5479b3cde8
commit
97cb1e3deb
@@ -272,11 +272,7 @@ public final class IdeaTestUtil {
|
||||
return BazelTestUtil.findRunfilesDirectoryUnderCommunityOrUltimate("java/" + name).toFile();
|
||||
}
|
||||
|
||||
File file = new File(PlatformTestUtil.getCommunityPath(), "java/" + name);
|
||||
if (!file.isDirectory()) {
|
||||
throw new RuntimeException("Can't find JDK directory for " + name + " at " + file);
|
||||
}
|
||||
return file;
|
||||
return new File(PlatformTestUtil.getCommunityPath(), "java/" + name);
|
||||
}
|
||||
|
||||
public static void addWebJarsToModule(@NotNull Module module) {
|
||||
|
||||
Reference in New Issue
Block a user