I was defining a 'cleanAll' task and I ran into a little confusion with the
Task definition syntax described here:
http://www.gradle.org/0.9-rc-1/docs/userguide/more_about_tasks.html
If I define my task like this:
[code]
task("cleanAll", type: Delete) << {
delete("some dir")
}
[/code]
It doesn't work. However defining it as below does:
[code]
task("cleanAll", type:Delete) {
delete("some dir")
}
[/code]
I thought these two formats were interchangeable and resulted in the same
thing? When should one be used vs. the other?
I'm using Gradle 0.9-rc-1
Thanks,
Eric
--
Learn from the past. Live in the present. Plan for the future.
Blog: http://www.townsfolkdesigns.com/blogs/elberry
jEdit <http://www.jedit.org> - Programmer's Text Editor
Bazaar <http://bazaar.canonical.com> - Version Control for Humans