Print path to java executable Kotlin daemon was started with.

Useful for tests to validate toolchain correct behaviour.

^KT-45611 In Progress
This commit is contained in:
Yahor Berdnikau
2021-04-26 10:47:28 +02:00
committed by TeamCityServer
parent 85456bd6d8
commit 201b6dfa60
@@ -101,7 +101,11 @@ object KotlinCompilerClient {
fun CompileService.leaseImpl(): CompileServiceSession? {
// the newJVMOptions could be checked here for additional parameters, if needed
registerClient(clientAliveFlagFile.absolutePath)
reportingTargets.report(DaemonReportCategory.DEBUG, "connected to the daemon")
val javaExecutablePath = compilerId.javaExecutable?.absolutePath ?: "'user jvm'"
reportingTargets.report(
DaemonReportCategory.DEBUG,
"connected to the daemon. Daemon is using following 'java' executable to run itself: $javaExecutablePath"
)
if (!leaseSession) return CompileServiceSession(this, CompileService.NO_SESSION)