[starter] IJPL-187564 Better support for targets execution override

GitOrigin-RevId: bfd56a2d8d81774f895acf6f88e8102c0cf89d7e
This commit is contained in:
Nikita Kudrin
2025-05-14 09:27:22 +00:00
committed by intellij-monorepo-bot
parent cb5f830fbd
commit 9a20e7c0db
@@ -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)
}