mirror of https://github.com/sbt/sbt.git
Use jni if required when running client from xMain
See https://github.com/sbt/sbt/issues/6162#issuecomment-733207878.
This commit is contained in:
parent
13b09bcd8f
commit
5769f80cbe
|
|
@ -1228,7 +1228,8 @@ object NetworkClient {
|
|||
val err = new PrintStream(term.errorStream)
|
||||
val out = if (redirectOutput) err else new PrintStream(term.outputStream)
|
||||
val args = parseArgs(arguments.toArray).withBaseDirectory(configuration.baseDirectory)
|
||||
val client = simpleClient(args, term.inputStream, out, err, useJNI = false)
|
||||
val useJNI = BootServerSocket.requiresJNI || System.getProperty("sbt.ipcsocket.jni", "false") == "true"
|
||||
val client = simpleClient(args, term.inputStream, out, err, useJNI = useJNI)
|
||||
clientImpl(client, args.bsp)
|
||||
}
|
||||
private class AccessDeniedException extends Throwable
|
||||
|
|
|
|||
Loading…
Reference in New Issue