Skip to content

Commit

Permalink
Add auto-detection for JVMs installed by mise
Browse files Browse the repository at this point in the history
mise-en-place (https://mise.jdx.dev/) is a polyglot tool version manager
  • Loading branch information
gzsombor authored and akurtakov committed Sep 25, 2024
1 parent 8194876 commit 5c87527
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ private Collection<File> computeCandidateVMs(StandardVMType standardType) {
rootDirectories.add(new File("/usr/lib/jvm")); //$NON-NLS-1$
}
rootDirectories.add(new File(System.getProperty("user.home"), ".sdkman/candidates/java")); //$NON-NLS-1$ //$NON-NLS-2$
rootDirectories.add(new File(System.getProperty("user.home"), ".local/share/mise/installs/java")); //$NON-NLS-1$ //$NON-NLS-2$

Set<File> directories = rootDirectories.stream().filter(File::isDirectory)
.map(dir -> dir.listFiles(File::isDirectory))
Expand Down

0 comments on commit 5c87527

Please sign in to comment.