From 1613e79e2d71c69587fb24bbd330fac897bf1ec8 Mon Sep 17 00:00:00 2001 From: Ilia Kirianovskii Date: Tue, 9 Sep 2025 22:26:04 +0300 Subject: [PATCH] Revert "bazel: calculate relevant jars root when delegating compilation to Bazel in TestCaseLoader" (IJI-3011) This reverts commit 003c45991424e4c26bb8b19a10d23daf3c996c13. GitOrigin-RevId: 05c2f4ccf27b85144a6a92a54868ba8f1846d6a0 --- .../core/src/com/intellij/TestCaseLoader.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/platform/testFramework/core/src/com/intellij/TestCaseLoader.java b/platform/testFramework/core/src/com/intellij/TestCaseLoader.java index 55ede6da8fb0..0da300c75144 100644 --- a/platform/testFramework/core/src/com/intellij/TestCaseLoader.java +++ b/platform/testFramework/core/src/com/intellij/TestCaseLoader.java @@ -6,7 +6,6 @@ import com.intellij.idea.IJIgnore; import com.intellij.idea.IgnoreJUnit3; import com.intellij.nastradamus.NastradamusClient; import com.intellij.openapi.application.PathManager; -import com.intellij.openapi.util.io.FileUtilRt; import com.intellij.openapi.util.text.StringUtil; import com.intellij.testFramework.*; import com.intellij.testFramework.bucketing.*; @@ -620,19 +619,7 @@ public class TestCaseLoader { if (myGetClassesCalled) { throw new IllegalStateException("Cannot fill more classes after 'getClasses' was already called"); } - String relevantJarsRoot = PathManager.getArchivedCompliedClassesLocation(); - - Path currentJarPath = PathManager.getJarForClass(getClass()); - if (relevantJarsRoot == null && currentJarPath != null) { - String bazelOutSubstring = "out/bazel-out"; - int bazelOutPathIndex = FileUtilRt.toSystemIndependentName(currentJarPath.toString()).indexOf(bazelOutSubstring); - if (bazelOutPathIndex > 0) { - // Was compiled by Bazel, let's set a relevant compilation root if it was not set yet - relevantJarsRoot = currentJarPath.toString().substring(0, bazelOutPathIndex + 1 + bazelOutSubstring.length()); - } - } - boolean noRelevantJarsRoot = StringUtil.isEmptyOrSpaces(relevantJarsRoot); long t = System.nanoTime();