Does the `[jvm].tool_jdk` support using “system”? ...
# general
n
Does the
[jvm].tool_jdk
support using “system”? That seems to be missing from the docs when compared to [
jvm].jdk
. Getting “failed to locate Java for JDK system” even though
cs java —jvm system -version
works as expected. We don’t really have an index of downloadable JDKs per se (at least not anything that resembles Coursier’s index of tgz files). Is it possible to use a path to an installation/Java executable instead when creating custom index.json?
b
Sorry for the trouble. You might be able to debug this by looking in the sandbox, i.e. stripping away the pants layers: https://www.pantsbuild.org/stable/docs/using-pants/troubleshooting-common-issues#debug-tip-inspect-the-sandbox-with---keep-sandboxes
h
Or a quick look at the Pants source code might clarify things? I imagine it would be fairly straightforward to add support for
system
(even though I don’t really know what it does, I’m just grokking a bit from your question…) 🙂
n
Yah, it doesn't, from what I can tell in the soruces, which means it always goes after whatever is in the index you point it to (the coursier index being default I assume) for JVM tools. I tried to create an
index.json
for our platforms by following the format in https://github.com/coursier/jvm-index/blob/master/index.json. But it does not recognize
tgz+file://<path>.tgz
like it does for
tgz+https://<path>.tgz
. Anyone know how to use a file?