Skip to content

Update refine.bat #5404

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

Merged
merged 1 commit into from
Nov 4, 2022
Merged

Update refine.bat #5404

merged 1 commit into from
Nov 4, 2022

Conversation

weberc
Copy link
Contributor

@weberc weberc commented Nov 3, 2022

The "Read ini file" part should be above the "Check JAVA_HOME" part. In the refine.ini file a custom JAVA_HOME can be defined and if JAVA_HOME is checked before reading the ini file, the custom JAVA_HOME setting is never used.

Fixes #5384

Changes proposed in this pull request:

  • Read the contents of the refine.ini file before checking JAVA_HOME variable

The "Read ini file" part should be above the "Check JAVA_HOME" part.
In the refine.ini file a custom JAVA_HOME can be defined and if JAVA_HOME is checked before reading the ini file, the custom JAVA_HOME setting is never used.
@github-actions github-actions bot added Type: Bug Issues related to software defects or unexpected behavior, which require resolution. Platform: Windows Indicates that the issue or feature is specific to the Windows operating system. labels Nov 3, 2022
Copy link
Member

@wetneb wetneb left a comment

Choose a reason for hiding this comment

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

Thank you for this, it makes sense to me! Can someone on Windows confirm, maybe @thadguidry?

@wetneb wetneb requested a review from thadguidry November 3, 2022 15:08
Copy link
Member

@thadguidry thadguidry left a comment

Choose a reason for hiding this comment

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

Tested (positive and negative, with system env variable as well as variable in refine.ini) and works correctly.

@wetneb wetneb merged commit a41f9b3 into OpenRefine:master Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: Windows Indicates that the issue or feature is specific to the Windows operating system. Type: Bug Issues related to software defects or unexpected behavior, which require resolution.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

refine.ini is read too late in refine.bat
3 participants