mirror of https://github.com/sbt/sbt.git
Merge pull request #6761 from gontard/fixBspConfig
Ensure sbtConfig argv does not need sbt in the path
This commit is contained in:
commit
45aa8cb75c
|
|
@ -49,9 +49,11 @@ object BuildServerConnection {
|
||||||
"-Xmx100m",
|
"-Xmx100m",
|
||||||
"-classpath",
|
"-classpath",
|
||||||
classPath,
|
classPath,
|
||||||
"xsbt.boot.Boot",
|
) ++
|
||||||
"-bsp"
|
sbtScript ++
|
||||||
) ++ sbtScript.orElse(sbtLaunchJar)
|
Vector("xsbt.boot.Boot", "-bsp") ++
|
||||||
|
(if (sbtScript.isEmpty) sbtLaunchJar else None)
|
||||||
|
|
||||||
val details = BspConnectionDetails(name, sbtVersion, bspVersion, languages, argv)
|
val details = BspConnectionDetails(name, sbtVersion, bspVersion, languages, argv)
|
||||||
val json = Converter.toJson(details).get
|
val json = Converter.toJson(details).get
|
||||||
IO.write(bspConnectionFile, CompactPrinter(json), append = false)
|
IO.write(bspConnectionFile, CompactPrinter(json), append = false)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue