From 9a20e7c0db539ef5b312d32e2e83a49089b53f72 Mon Sep 17 00:00:00 2001 From: Nikita Kudrin Date: Tue, 13 May 2025 14:41:24 +0300 Subject: [PATCH] [starter] IJPL-187564 Better support for targets execution override GitOrigin-RevId: bfd56a2d8d81774f895acf6f88e8102c0cf89d7e --- .../src/com/jetbrains/performancePlugin/ProjectLoaded.kt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/performanceTesting/core/src/com/jetbrains/performancePlugin/ProjectLoaded.kt b/plugins/performanceTesting/core/src/com/jetbrains/performancePlugin/ProjectLoaded.kt index 9a11b25fefaa..b4b9ef6c4b0e 100644 --- a/plugins/performanceTesting/core/src/com/jetbrains/performancePlugin/ProjectLoaded.kt +++ b/plugins/performanceTesting/core/src/com/jetbrains/performancePlugin/ProjectLoaded.kt @@ -58,7 +58,6 @@ import java.net.ConnectException import java.nio.file.Files import java.nio.file.Path import java.nio.file.StandardOpenOption -import java.util.Collections import java.util.concurrent.CompletableFuture import java.util.concurrent.ConcurrentHashMap import java.util.function.Function @@ -220,9 +219,9 @@ private fun runScriptDuringIndexing(project: Project, alarm: Alarm) { @Internal class ProjectLoaded : ApplicationInitializedListener { override suspend fun execute() { - // Under flag since a proper solution should be implemented in the platform later - // https://youtrack.jetbrains.com/issue/IJPL-176231/ProductionWslIjentAvailabilityService-Registry-key-wsl.use.remote.agent.for.nio.filesystem-is-not-defined - if (System.getenv("STARTER_TESTS_SUPPORT_TARGETS").toBoolean()) { + // TODO: Under flag since a proper solution should be implemented in the platform later + if (SystemProperties.getBooleanProperty("STARTER_TESTS_SUPPORT_TARGETS", false) + || System.getenv("STARTER_TESTS_SUPPORT_TARGETS").toBoolean()) { IntegrationTestApplicationLoadListener.projectPathFromCommandLine?.run { EelInitialization.runEelInitialization(this) }