Tom Eyckmans wrote:
I was thinking about doing something to make the blocks that we
provide in the build file (repositories, configurations, dependencies)
more general/flexible. This is probably not as related to what you
were bringing up Adam but it just came to my mind when reading
ConfigurationContainer :)) . Currently this is something that seems to
static to me. Wouldn't it be cool if plugins would be able to add blocks?
They already can. They just add a convention object with 2 methods:
ThingContainer getThings();
void things(Closure);
If it makes sense, the ThingContainer implementation can extend
DefaultDomainObjectContainer<Thing> to pick up all the
get/find/configure/iterate methods that the other containers have. Or not.
Perhaps I'm missing the problem?
Adam
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email