mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[project import perf tests] IJ-CR-115806 Fixes for review
GitOrigin-RevId: 3d3a19059a8d9312f523793dfedff8d7b115a1d9
This commit is contained in:
committed by
intellij-monorepo-bot
parent
1d864f33b6
commit
7b31275d08
@@ -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) }
|
||||
|
||||
Reference in New Issue
Block a user