Skip to content

[1.x] bport: Handle JVM parameters with spaces in dot files#8738

Merged
eed3si9n merged 1 commit intosbt:1.12.xfrom
eed3si9n:bport/sbtopts
Feb 14, 2026
Merged

[1.x] bport: Handle JVM parameters with spaces in dot files#8738
eed3si9n merged 1 commit intosbt:1.12.xfrom
eed3si9n:bport/sbtopts

Conversation

@eed3si9n
Copy link
Copy Markdown
Member

@eed3si9n eed3si9n commented Feb 14, 2026

This is a backport of #8730

Problem

The sbt launcher script used naive word splitting when parsing .sbtopts and .jvmopts, so arguments with spaces were split incorrectly. For example, -J--add-modules jdk.incubator.concurrent in .sbtopts and -Dtest.key="value with spaces" in .jvmopts were not passed to the JVM as intended.

**Problem**

The sbt launcher script used naive word splitting when parsing `.sbtopts` and `.jvmopts`, so arguments with spaces were split incorrectly. For example, `-J--add-modules jdk.incubator.concurrent` in `.sbtopts` and `-Dtest.key="value with spaces"` in `.jvmopts` were not passed to the JVM as intended.
@eed3si9n eed3si9n changed the title [1.x] fix: Handle JVM parameters with spaces in dot files (#8730) [1.x] bport: Handle JVM parameters with spaces in dot files (#8730) Feb 14, 2026
@eed3si9n eed3si9n changed the title [1.x] bport: Handle JVM parameters with spaces in dot files (#8730) [1.x] bport: Handle JVM parameters with spaces in dot files Feb 14, 2026
@eed3si9n eed3si9n merged commit 44187ea into sbt:1.12.x Feb 14, 2026
10 checks passed
@eed3si9n eed3si9n deleted the bport/sbtopts branch February 14, 2026 10:00
eed3si9n added a commit to eed3si9n/sbt that referenced this pull request Feb 23, 2026
eed3si9n added a commit that referenced this pull request Feb 23, 2026
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.

2 participants