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

Sbt options are treated differently #7197

Open
azdrojowa123 opened this issue Mar 31, 2023 · 2 comments
Open

Sbt options are treated differently #7197

azdrojowa123 opened this issue Mar 31, 2023 · 2 comments
Labels
area/runner-script issues around sbt-the-bash-script, or bat script Bug

Comments

@azdrojowa123
Copy link
Contributor

When I invoke in terminal
sbt -sbt-dir "/Users/a' dog" --verbose
the output shows that this option is mapped to "-Dsbt.global.base=/Users/a' dog"
But later when I will move this option from terminal to the .sbtopts file and invoke sbt --verbose the output shows that it is mapped to -Dsbt.global.base=/Users/a'

Whether this difference has some hidden purpose ? It introduces additional inconsistency

SBT: sbt1.8.2
OS: macOs 12.13.1

@azdrojowa123
Copy link
Contributor Author

azdrojowa123 commented Apr 12, 2023

Additional - help command shows an information:

In the case of duplicated or conflicting options, the order above
shows precedence: JAVA_OPTS lowest, command line options highest.

But when I test it the highest precedence belongs to SBT_OPTS. I've noticed such a precendence (from lowest):

  1. JAVA_OPTS environment variable
  2. .jvmopts file (in the project directory)
  3. .sbtopts file (in the project directory)
  4. command line options
  5. SBT_OPTS environment variable

Shouldn't SBT_OPTS come before .sbtopts file ?

@eed3si9n eed3si9n added the area/runner-script issues around sbt-the-bash-script, or bat script label Apr 14, 2023
@eed3si9n
Copy link
Member

@azdrojowa123 Thanks for the report. Handing whitespace and quotes are difficult in Bash, so I am guessing that some of these are just bugs related to that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/runner-script issues around sbt-the-bash-script, or bat script Bug
Projects
None yet
Development

No branches or pull requests

2 participants