[Daemon] Introduce the way to get Kotlin daemon compiler version
#KT-48294 In Progress
This commit is contained in:
committed by
Space
parent
815329df15
commit
612b96bd54
@@ -80,6 +80,9 @@ interface CompileService : Remote {
|
||||
@Throws(RemoteException::class)
|
||||
fun getDaemonInfo(): CallResult<String>
|
||||
|
||||
@Throws(RemoteException::class)
|
||||
fun getKotlinVersion(): CallResult<String>
|
||||
|
||||
@Throws(RemoteException::class)
|
||||
fun getDaemonJVMOptions(): CallResult<DaemonJVMOptions>
|
||||
|
||||
|
||||
+2
@@ -20,6 +20,8 @@ interface CompileServiceAsync {
|
||||
|
||||
suspend fun getDaemonInfo(): CompileService.CallResult<String>
|
||||
|
||||
suspend fun getKotlinVersion(): CompileService.CallResult<String>
|
||||
|
||||
suspend fun getDaemonJVMOptions(): CompileService.CallResult<DaemonJVMOptions>
|
||||
|
||||
suspend fun registerClient(aliveFlagPath: String?): CompileService.CallResult<Nothing>
|
||||
|
||||
+2
@@ -58,6 +58,8 @@ class CompileServiceAsyncWrapper(
|
||||
override suspend fun getDaemonInfo() =
|
||||
rmiCompileService.getDaemonInfo()
|
||||
|
||||
override suspend fun getKotlinVersion() =
|
||||
rmiCompileService.getKotlinVersion()
|
||||
|
||||
override suspend fun getDaemonJVMOptions() =
|
||||
rmiCompileService.getDaemonJVMOptions()
|
||||
|
||||
+3
@@ -144,6 +144,9 @@ class CompileServiceClientRMIWrapper(
|
||||
asyncCompileService.getDaemonInfo()
|
||||
}
|
||||
|
||||
override fun getKotlinVersion() = runBlocking {
|
||||
asyncCompileService.getKotlinVersion()
|
||||
}
|
||||
|
||||
override fun getDaemonJVMOptions() = runBlocking {
|
||||
asyncCompileService.getDaemonJVMOptions()
|
||||
|
||||
Reference in New Issue
Block a user