mirror of https://github.com/sbt/sbt.git
Merge branch 'develop' into log-format-color
This commit is contained in:
commit
0d332101f9
|
|
@ -1327,7 +1327,10 @@ private[sbt] object ContinuousCommands {
|
|||
}
|
||||
|
||||
private[sbt] val preWatchCommand = watchCommand(preWatch) { (channel, state) =>
|
||||
watchState(state, channel).beforeCommand(state)
|
||||
val ws = watchState(state, channel)
|
||||
val newState = ws.beforeCommand(state)
|
||||
ws.callbacks.beforeCommand()
|
||||
newState
|
||||
}
|
||||
private[sbt] val postWatchCommand = watchCommand(postWatch) { (channel, state) =>
|
||||
val cs = watchState(state, channel)
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
import java.nio.file.{ Files, Paths }
|
||||
|
||||
watchBeforeCommand := { () => Files.write(Paths.get("foo"), "foo".getBytes) }
|
||||
|
||||
watchOnIteration := { (_, _, _) => sbt.nio.Watch.CancelWatch }
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
> ~compile
|
||||
|
||||
$ exists foo
|
||||
Loading…
Reference in New Issue