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

refactor: Fetch java executable location from PATH if JAVA_HOME is unset #573

Merged
merged 4 commits into from
Aug 5, 2021

Conversation

mykola-mokhnach
Copy link
Contributor

Related to appium/appium#15693

}
}
try {
return await fs.which(executableName);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we generalize this for other binaries, not just java?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

which binaries exactly you'd like to generalize?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm not sure, don't we do similar logic currently for binaries inside ANDROID_HOME, and, e.g., jarsigner?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jarsigner is only used as a fallback if apksigner fails for some reason, so I would rather leave it as is for now

@mykola-mokhnach mykola-mokhnach merged commit ce578a0 into appium:master Aug 5, 2021
@mykola-mokhnach mykola-mokhnach deleted the java_home branch August 5, 2021 07:59
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