Replace daemon's message after start with constant string

#KT-15783 fixed

When a daemon client cannot find an existing daemon, it starts a new one.
The client waits for a daemon to start and initialize.
Then the daemon is expected to signal that it is ready for compiling by printing message in stdout.
Before this change the message was the daemons' run path (a directory where all daemons store
their "flag" files).
However the path printed by the daemon was not matched by the path expected by the client somehow
on Windows for a user with a username containing non-English letters.
This commit replaces the message with the constant string.
This commit is contained in:
Alexey Tsvetkov
2017-02-16 23:33:31 +03:00
parent b2de822fd4
commit 3b222f13f3
3 changed files with 3 additions and 5 deletions
@@ -341,7 +341,7 @@ object KotlinCompilerClient {
daemon.inputStream
.reader()
.forEachLine {
if (daemonOptions.runFilesPath.isNotEmpty() && it.contains(daemonOptions.runFilesPath)) {
if (it == COMPILE_DAEMON_IS_READY_MESSAGE) {
isEchoRead.release()
return@forEachLine
}