Hi,
Am 24.08.10 00:33, schrieb Eric Berry:
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?
Yes.
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")
}
Yes.
regards,
René
--
------------------------------------
Rene Groeschke
[email protected]
http://www.breskeby.com
http://twitter.com/breskeby
------------------------------------
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email