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

Windows bat script improvements #1563

Merged
merged 3 commits into from
Feb 20, 2024
Merged

Conversation

dwickern
Copy link
Collaborator

@dwickern dwickern commented Dec 30, 2023

There are still some things missing for complete parity with the bash script but this gets us a little closer.

Fixes parsing of -J-XX: options containing an equal sign

I'm using the same logic as sbt's own launcher. Unless it starts with -XX:+ or -XX:-, all -XX: options are parsed as two arguments

Fixes #1387
Fixes #1090

Note that if you're using the workaround from #1387 by quoting the options in application.ini, that will no longer work.

Implements -java-home option

Used like -java-home "C:\Program Files\Eclipse Adoptium\jre-11.0.13.8-hotspot" or -java-home "%APP_HOME%\jre". The argument has higher priority than environment variables.

Fixes #1447
Fixes #1070

This will make it easier to support new arguments.
It shouldn't change the functionality.
@lightbend-cla-validator

Hi @dwickern,

Thank you for your contribution! We really value the time you've taken to put this together.

We see that you have signed the Lightbend Contributors License Agreement before, however, the CLA has changed since you last signed it.
Please review the new CLA and sign it before we proceed with reviewing this pull request:

http://www.lightbend.com/contribute/cla

@muuki88 muuki88 merged commit dafab60 into sbt:master Feb 20, 2024
13 of 15 checks passed
@muuki88
Copy link
Contributor

muuki88 commented Feb 20, 2024

Thanks a lot @dwickern . The test failures seem unrelated. I guess GraalVM & Docker need constant maintenance. Thus I merged your change for the time being

@dwickern dwickern deleted the bat-improvements branch February 20, 2024 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants