* make watcher work in console-interactive mode as well as without console

This commit is contained in:
Reinhard Pointner 2013-03-22 03:15:48 +00:00
parent 5abb244218
commit e7e2b293d3
1 changed files with 1 additions and 1 deletions

View File

@ -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