* make watcher work in console-interactive mode as well as without console
This commit is contained in:
parent
5abb244218
commit
e7e2b293d3
|
@ -19,4 +19,4 @@ watchman.commitDelay = 5 * 1000 // default = 5s
|
|||
watchman.commitPerFolder = true // default = true
|
||||
|
||||
println "Waiting for events"
|
||||
console.readLine() // keep running and watch for changes
|
||||
if (console) { console.readLine() } else { sleep(Long.MAX_VALUE) } // keep running and watch for changes
|
Loading…
Reference in New Issue