sbt/launcher-package
Lazz 02d9d4c699
[2.x] fix: Support inline comments in .jvmopts and .sbtopts files (#8758)
**Problem**
After PR #8730 (commit 921efce), inline comments in .jvmopts and .sbtopts files cause errors.
For example, `--add-opens=java.base/java.util=ALL-UNNAMED # comment` results in:
Error: Could not find or load main class #

The # and everything after it is now parsed as separate arguments instead of being stripped as a comment.

**Solution**
Update the sed command in outputConfigFileTokens() to strip inline comments (everything from # to end of line) before parsing tokens.

The new s/\s*\#.*// pattern matches optional whitespace + # + rest of line and removes it.

Generated-by: Claude Sonnet 4.5
2026-02-17 14:42:16 -05:00
..
bin fix typo 2025-01-02 13:52:51 +09:00
citest Scala 3.8.1 2026-01-24 04:52:28 -05:00
citest2 [2.x] fix: handle --script-version sbt 2.x project dirs (#8715) 2026-02-07 22:16:21 -05:00
integration-test [2.x] fix: Support inline comments in .jvmopts and .sbtopts files (#8758) 2026-02-17 14:42:16 -05:00
src [2.x] fix: handle --version in sbt 2.x project dirs (sbt#8717) (#8735) 2026-02-13 09:10:51 -08:00
upload Spelling (#8028) 2025-02-04 01:11:28 -05:00
CONTRIBUTING.md move to launcher-package/ 2021-04-19 10:45:29 -04:00
LICENSE ci: Split server-test 2025-08-24 00:17:58 -04:00
NOTICE Transfer copyright to Scala Center 2023-06-20 16:39:07 +02:00
build.sbt [2.x] require coreutils for RPM (#8712) 2026-02-07 17:23:39 -05:00