Hi Rene,
Thank you for the quick response. I apologize, I should have included
some more context. I'm actually trying to create a Gradle plugin and the
syntax they use in the documentation is the '<<' syntax:
http://www.gradle.org/0.9-rc-1/docs/userguide/custom_plugins.html
My initial confusion came from my defining a "cleanAll" task within my
plugin and finding that the directory I wanted to delete, didn't get
deleted.
This lead to my trying it outside of a plugin setting with these two
formats:
A:
task('cleanAll', type: Delete) { ... }
B:
task('cleanAll', type:Delete) << { ... }
And finding that format A works, and format B doesn't. Changing to format A
in my plugin makes it work in the plugin.
After reading your comments, my understanding is that this may cause issues
if the user has defined a 'cleanAll' task in their own build, and applied my
plugin. Is this correct?
In this case, if the user wanted to add directories/files to be deleted they
would need to use this format?
cleanAll {
delete("some other directory", "some other file")
}
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