mirror of https://github.com/sbt/sbt.git
**Problem** When sbtn (native thin client) can't find a running sbt server, it prompts to start one. There was no way to opt out of server auto-start from the client side, which is needed for CI environments and scripting (sbt/sbt#7079). **Solution** Reuse the existing sbt.server.autostart system property in NetworkClient to control whether sbtn should attempt to start a server. When no server is running and sbt.server.autostart=false, sbtn exits with an error instead of prompting. Support setting this property via: - sbtn --no-server compile (sets sbt.server.autostart=false) - sbtn --autostart=false compile (new flag following sbt conventions) - sbtn -Dsbt.server.autostart=false compile (direct system property) - sbt --autostart=false compile (bash runner and sbtw) This follows sbt's naming conventions for properties/options: positive property names with =false opt-out (like --color=false, --supershell=false). Fixes sbt/sbt#7079 Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||