Ordinary Groovy snippets can be used inside a task
Groovy int.times {} can be used, of course