Skip to content
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

Duplicate mise's logic for finding Java installations #538

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

TobiX
Copy link
Contributor

@TobiX TobiX commented Oct 15, 2024

What it does

This amends #493 by duplicating mise's logic on where to put installed Java versions (see https://github.com/jdx/mise/blob/c412b3295aa768980774126315da18a9db4a8349/src/env.rs#L48-L65), so we find them in the same location.

How to test

  1. Configure one of the supported variables (XDG_DATA_HOME, MISE_DATA_DIR) in your environment
  2. Install any JDK with mise (for example mise install java@microsoft-17)
  3. Open the preference page, and check if the new JVM is detected

Author checklist

@TobiX TobiX force-pushed the sync-mise-directory branch from 989ae7d to 0986a50 Compare October 15, 2024 09:34
@akurtakov
Copy link
Contributor

Overall, it looks good. Please rebase on top of master as it has conflicts.

@TobiX TobiX force-pushed the sync-mise-directory branch from 0986a50 to ab4fcdf Compare October 23, 2024 11:14
@TobiX TobiX force-pushed the sync-mise-directory branch from ab4fcdf to 87d808a Compare October 23, 2024 11:14
@jukzi
Copy link
Contributor

jukzi commented Oct 28, 2024

tested on win, that detection still works.

@jukzi jukzi merged commit c73de59 into eclipse-jdt:master Oct 28, 2024
11 checks passed
@TobiX TobiX deleted the sync-mise-directory branch October 28, 2024 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants