[project import perf tests] IJ-CR-115806 Fixes for review

GitOrigin-RevId: 3d3a19059a8d9312f523793dfedff8d7b115a1d9
This commit is contained in:
Nikita Kudrin
2023-09-29 09:13:01 +00:00
committed by intellij-monorepo-bot
parent 1d864f33b6
commit 7b31275d08
2 changed files with 2 additions and 2 deletions
@@ -39,7 +39,7 @@ fun getIdeSystemProperties(runDir: Path): Map<String, String> {
val libDir = runDir.resolve("lib")
val defaultProperties: Map<String, String> = Properties().apply {
load(runDir.resolve("bin").listDirectoryEntries(glob = "*.properties").single().bufferedReader())
load(runDir.resolve("bin/idea.properties").bufferedReader())
}.map { it.key.toString() to it.value.toString() }.toMap()
return defaultProperties.plus(
@@ -94,7 +94,7 @@ internal suspend fun buildProduct(productConfiguration: ProductConfiguration, re
// PathManager.getBinPath() is used as a working dir for maven
Files.createDirectories(runDir.resolve("bin")).also { distBinDir ->
getOsDistributionBuilder(os = OsFamily.currentOs, context = context)!!.writeVmOptions(distBinDir)
// copying outside of the installation directory is neccesary to specify system property "jb.vmOptionsFile"
// copying outside the installation directory is necessary to specify system property "jb.vmOptionsFile"
.apply { this.copyTo(distBinDir.parent.parent.resolve(this.fileName), overwrite = true) }
patchIdeaPropertiesFile(context).apply { moveTo(distBinDir.resolve(this.fileName), overwrite = true) }