Hey,
I've got a task where I have to parse thousands of files. I like the new ANSI
output showing task execution information and I would like to piggy-back on
that.
What I would like to do is something like this:
task "my-task" << {
task ->
// read list of files
def files = [...]
def progression = task.newProgression files.size()
files.each {
file ->
// do work
progression.increment()
}
}
This should then output the percentage progression in ANSI on the bottom of the
console during the execution of the task.
Is this at all possible?
Thanks
Steven