Auto reload by default

This commit is contained in:
Eugene Yokota 2025-08-16 02:24:58 -04:00
parent 10df886cad
commit 2e99220c1a
1 changed files with 2 additions and 4 deletions

View File

@ -186,17 +186,15 @@ object SysProp {
}
}
def onChangedBuildSource: WatchBuildSourceOption = {
def onChangedBuildSource: WatchBuildSourceOption =
val sysPropKey = "sbt.build.onchange"
sys.props.getOrElse(sysPropKey, "warn") match {
sys.props.getOrElse(sysPropKey, "reload") match
case "reload" => ReloadOnSourceChanges
case "warn" => WarnOnSourceChanges
case "ignore" => IgnoreSourceChanges
case unknown =>
System.err.println(s"Unknown $sysPropKey: $unknown.\nUsing warn.")
sbt.nio.Keys.WarnOnSourceChanges
}
}
def serverUseJni = getOrFalse("sbt.ipcsocket.jni")