[2.x] fix: Fixes double quotes handling in fork mode (#8842)

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/sbt#7129

Co-authored-by: BrianHotopp <brihoto@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
eugene yokota 2026-03-01 02:44:08 -05:00 committed by GitHub
parent a1314ed05c
commit 677a6cf7a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

Diff Content Not Available