mirror of https://github.com/sbt/sbt.git
Auto reload by default
This commit is contained in:
parent
10df886cad
commit
2e99220c1a
|
|
@ -186,17 +186,15 @@ object SysProp {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
def onChangedBuildSource: WatchBuildSourceOption = {
|
def onChangedBuildSource: WatchBuildSourceOption =
|
||||||
val sysPropKey = "sbt.build.onchange"
|
val sysPropKey = "sbt.build.onchange"
|
||||||
sys.props.getOrElse(sysPropKey, "warn") match {
|
sys.props.getOrElse(sysPropKey, "reload") match
|
||||||
case "reload" => ReloadOnSourceChanges
|
case "reload" => ReloadOnSourceChanges
|
||||||
case "warn" => WarnOnSourceChanges
|
case "warn" => WarnOnSourceChanges
|
||||||
case "ignore" => IgnoreSourceChanges
|
case "ignore" => IgnoreSourceChanges
|
||||||
case unknown =>
|
case unknown =>
|
||||||
System.err.println(s"Unknown $sysPropKey: $unknown.\nUsing warn.")
|
System.err.println(s"Unknown $sysPropKey: $unknown.\nUsing warn.")
|
||||||
sbt.nio.Keys.WarnOnSourceChanges
|
sbt.nio.Keys.WarnOnSourceChanges
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
def serverUseJni = getOrFalse("sbt.ipcsocket.jni")
|
def serverUseJni = getOrFalse("sbt.ipcsocket.jni")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue