IJent + RD/CWM tests: add VM Options for IJent WSL FS

GitOrigin-RevId: 33927083707d4752b2f15a9b6907974ab46cfdd9
This commit is contained in:
Vladimir Lagunov
2024-08-26 18:06:15 +02:00
committed by intellij-monorepo-bot
parent 70aabe4830
commit 991159855f
2 changed files with 7 additions and 0 deletions

View File

@@ -17,5 +17,6 @@
<orderEntry type="module" module-name="intellij.platform.buildScripts.downloader" />
<orderEntry type="library" scope="TEST" name="JUnit5" level="project" />
<orderEntry type="module" module-name="intellij.platform.testFramework.junit5" scope="TEST" />
<orderEntry type="module" module-name="intellij.platform.ijent.community.buildConstants" />
</component>
</module>

View File

@@ -1,6 +1,8 @@
package com.intellij.tools.launch.ide
import com.intellij.openapi.util.SystemInfo
import com.intellij.platform.ijent.community.buildConstants.MULTI_ROUTING_FILE_SYSTEM_VMOPTIONS
import com.intellij.platform.ijent.community.buildConstants.isIjentWslFsEnabledByDefaultForProduct
import com.intellij.platform.runtime.product.ProductMode
import com.intellij.tools.launch.PathsProvider
import com.intellij.tools.launch.environments.LaunchCommand
@@ -84,6 +86,10 @@ object IdeLauncher {
add("-XX:+BytecodeVerificationLocal")
add("-Dshared.indexes.download.auto.consent=true")
if (isIjentWslFsEnabledByDefaultForProduct(context.platformPrefix)) {
addAll(MULTI_ROUTING_FILE_SYSTEM_VMOPTIONS)
}
if (context.specifyUserHomeExplicitly) {
/* the module-based loader adds JARs from Maven repository (${user.home}/.m2/repository) to the classpath, so we need to ensure that
the proper value of 'user.home' is passed to it (otherwise, it may point to /root) */