Move daemon session flag files to daemon discovery dir by default + minor fixes:

- Move flag files from the temp dir, because right now JPS cleans temp dir on each build start. Should fix KT-15707, also may affect KT-15562.
- change compiler runner to allow the fix above
- Fix flag file name filtering
- Fix ifAlive handling on the new compile method in the daemon.
This commit is contained in:
Ilya Chernikov
2017-01-27 19:49:43 +01:00
parent ddbb476211
commit 7c0cdf90cf
5 changed files with 12 additions and 13 deletions
@@ -60,7 +60,7 @@ object KotlinCompilerClient {
?.check { !it.isBlank() }
?.let(::File)
?.check(File::exists)
?: makeAutodeletingFlagFile()
?: makeAutodeletingFlagFile(baseDir = File(daemonOptions.runFilesPathOrDefault))
return connectToCompileService(compilerId, flagFile, daemonJVMOptions, daemonOptions, reportingTargets, autostart)
}