Groovy Documentation

clojuresque.tasks
[Groovy] Class TaskWatcher

java.lang.Object
  org.gradle.api.DefaultTask
      clojuresque.tasks.TaskWatcher

class TaskWatcher
extends DefaultTask

Execute a set of tasks in a regular interval. This can be useful when to generate eg. a new set of assets during web development. Or run tests continually during development. Note: This is somewhat hacky. Expect problems.

Authors:
Meikel Brandmeyer <mb@kotka.de>


Property Summary
java.lang.Object pollingInterval

The sleeping interval between task runs.

 
Method Summary
java.lang.Object getTasks()

Get the tasks, watched by this watcher task.

java.lang.Object setTasks(java.lang.Object tasks)

Set the tasks, watched by this watcher task.

java.lang.Object task(java.lang.Object t)

Add a task to be watched by this watcher task.

void watch()

The task action.

 

Property Detail

pollingInterval

java.lang.Object pollingInterval
The sleeping interval between task runs. The time is measured in milli seconds. Default: 5s.


 
Method Detail

getTasks

java.lang.Object getTasks()
Get the tasks, watched by this watcher task.


setTasks

java.lang.Object setTasks(java.lang.Object tasks)
Set the tasks, watched by this watcher task. The argument must be suitable for the tasks property of GradleBuild.
Parameters:
tasks - The tasks to watch
Returns:
this


task

java.lang.Object task(java.lang.Object t)
Add a task to be watched by this watcher task. The argument must be suitable for the tasks property of GradleBuild.
Parameters:
t - The task to watch
Returns:
this


watch

@TaskAction
void watch()
The task action. Call only if you know what you are doing.


 

Groovy Documentation