From e7e2b293d310ba4577e198b4c11d4570e9203d0a Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Fri, 22 Mar 2013 03:15:48 +0000 Subject: [PATCH] * make watcher work in console-interactive mode as well as without console --- website/scripts/watcher.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/scripts/watcher.groovy b/website/scripts/watcher.groovy index b162a538..74047770 100644 --- a/website/scripts/watcher.groovy +++ b/website/scripts/watcher.groovy @@ -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 \ No newline at end of file