-
Notifications
You must be signed in to change notification settings - Fork 38
copy JDK_HOME bootstrap files to forwarding toolchain directory for Kotlin #418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
1a71469
to
d93358d
Compare
I might have to change this to copy everything, as symbolic links under Windows has historically required elevated permissions. What do you think? @olafurpg |
b4179b1
to
6d3b2d2
Compare
lsif-java/src/main/scala/com/sourcegraph/lsif_java/buildtools/GradleJavaCompiler.scala
Outdated
Show resolved
Hide resolved
lsif-java/src/main/scala/com/sourcegraph/lsif_java/buildtools/GradleJavaCompiler.scala
Show resolved
Hide resolved
0ca7533
to
f11080f
Compare
lsif-java/src/main/scala/com/sourcegraph/lsif_java/buildtools/GradleJavaCompiler.scala
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, probably could be compressed a bit more but thanks for simplifying away the class definition.
…GradleJavaCompiler.scala Co-authored-by: Varun Gandhi <varun.gandhi@sourcegraph.com>
val javaHome = javacPath.getParent.getParent | ||
val libPath = dir.resolve("lib") | ||
val javacLibPath = javaHome.resolve("lib") | ||
copyFiles(javacLibPath, libPath) | ||
|
||
if (languageVersion == "8") { | ||
val jreLibPath = dir.resolve("jre").resolve("lib") | ||
Files.createDirectories(jreLibPath.getParent) | ||
val javacJreLibPath = javaHome.resolve("jre").resolve("lib") | ||
|
||
copyFiles(javacJreLibPath, jreLibPath) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice and compact! 🍬
Closes #417
Test plan
I tested this on https://github.com/fwcd/kotlin-language-server 🙂