Merge pull request #6167 from eatkins/client-jni

Use jni if required when running client from xMain
This commit is contained in:
eugene yokota 2020-11-24 16:54:18 -05:00 committed by GitHub
commit 2e248ca7c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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