From d3e4da3719de8ffcb822d7e16d5d107f996d4f48 Mon Sep 17 00:00:00 2001 From: Ilya Chernikov Date: Fri, 16 Sep 2016 17:07:45 +0200 Subject: [PATCH] Add remote input stream support, plus minor tweaks Original commit: 042fc4fadcfc8b24f3fe6bb14f50cc2b3756294b --- .../kotlin/compilerRunner/KotlinCompilerRunner.kt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/jps/jps-plugin/src/org/jetbrains/kotlin/compilerRunner/KotlinCompilerRunner.kt b/jps/jps-plugin/src/org/jetbrains/kotlin/compilerRunner/KotlinCompilerRunner.kt index 6a27f7074b3..d6fb529aa70 100644 --- a/jps/jps-plugin/src/org/jetbrains/kotlin/compilerRunner/KotlinCompilerRunner.kt +++ b/jps/jps-plugin/src/org/jetbrains/kotlin/compilerRunner/KotlinCompilerRunner.kt @@ -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) {