Add remote input stream support, plus minor tweaks

This commit is contained in:
Ilya Chernikov
2016-09-16 17:07:45 +02:00
parent eaa332019a
commit 042fc4fadc
7 changed files with 131 additions and 9 deletions
@@ -157,13 +157,8 @@ object KotlinCompilerRunner {
val profiler = if (daemonOptions.reportPerf) WallAndThreadAndMemoryTotalProfiler(withGC = false) else DummyProfiler()
profiler.withMeasure(null) {
fun newFlagFile(): File {
val flagFile = File.createTempFile("kotlin-compiler-jps-session-", "-is-running")
flagFile.deleteOnExit()
return flagFile
}
val daemon = KotlinCompilerClient.connectToCompileService(compilerId, daemonJVMOptions, daemonOptions, DaemonReportingTargets(null, daemonReportMessages), true, true)
connection = DaemonConnection(daemon, daemon?.leaseCompileSession(newFlagFile().absolutePath)?.get() ?: CompileService.NO_SESSION)
connection = DaemonConnection(daemon, daemon?.leaseCompileSession(makeAutodeletingFlagFile("compiler-jps-session").absolutePath)?.get() ?: CompileService.NO_SESSION)
}
for (msg in daemonReportMessages) {