Replace -jar with -classpath in BuildServerConnectionDetails

This commit is contained in:
adpi2
2020-06-08 15:36:41 +02:00
parent 37d1cd98eb
commit eac9328db7
2 changed files with 13 additions and 4 deletions
@@ -202,8 +202,8 @@ private[sbt] object Server {
private[this] def writeBspConnectionDetails(): Unit = {
import bsp.codec.JsonProtocol._
val sbtVersion = appConfiguration.provider.id.version
val launcherJar = ManagementFactory.getRuntimeMXBean.getClassPath
val details = BuildServerConnection.details(sbtVersion, launcherJar)
val launcherClassPath = ManagementFactory.getRuntimeMXBean.getClassPath
val details = BuildServerConnection.details(sbtVersion, launcherClassPath)
val json = Converter.toJson(details).get
IO.write(bspConnectionFile, CompactPrinter(json), append = false)
}