Skip to content

[1.x] bport: Fixes double quotes handling in fork mode (#8765)#8845

Merged
eed3si9n merged 1 commit intosbt:1.12.xfrom
eed3si9n:bport1/double-quotes
Mar 1, 2026
Merged

[1.x] bport: Fixes double quotes handling in fork mode (#8765)#8845
eed3si9n merged 1 commit intosbt:1.12.xfrom
eed3si9n:bport1/double-quotes

Conversation

@eed3si9n
Copy link
Copy Markdown
Member

@eed3si9n eed3si9n commented Mar 1, 2026

This is a backport of #8765

When using the arguments file (@argsfile) mechanism for forked runs, double quotes inside arguments were not escaped, causing the JVM's argument file parser to strip them. For example, passing {"a":1} as an argument would result in {a:1}.

Escape " as \" in createArgumentsFile, matching the existing backslash escaping, so the JVM correctly round-trips quoted arguments.

Fixes #7129

When using the arguments file (`@argsfile`) mechanism for forked runs,
double quotes inside arguments were not escaped, causing the JVM's
argument file parser to strip them. For example, passing `{"a":1}` as
an argument would result in `{a:1}`.

Escape `"` as `\"` in `createArgumentsFile`, matching the existing
backslash escaping, so the JVM correctly round-trips quoted arguments.

Fixes sbt#7129

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@eed3si9n eed3si9n changed the title [1.x] fix: Fixes double quotes handling in fork mode (#8765) [1.x] bport: Fixes double quotes handling in fork mode (#8765) Mar 1, 2026
@eed3si9n eed3si9n merged commit 808f601 into sbt:1.12.x Mar 1, 2026
10 checks passed
@eed3si9n eed3si9n deleted the bport1/double-quotes branch March 1, 2026 08:05
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