NodeRunner/Mac: java_home does not expect to be given a full path to the Java binary, and at the point we get here, we know the full JVM path anyway so we don't need the wrapper.

This commit is contained in:
Mike Hearn 2017-05-17 19:44:33 +02:00
parent a5be12a81b
commit e67521796f

View File

@ -87,7 +87,7 @@ private class TerminalWindowJavaCommand(jarName: String, dir: File, debugPort: I
activate
tell app "System Events" to tell process "Terminal" to keystroke "t" using command down
delay 0.5
do script "bash -c 'cd $dir; /usr/libexec/java_home -v 1.8 --exec ${command.joinToString(" ")} && exit'" in selected tab of the front window
do script "bash -c 'cd $dir; ${command.joinToString(" ")} && exit'" in selected tab of the front window
end tell""")
}
OS.WINDOWS -> {