On Dec 12, 2008, at 9:40 PM, Adam Murdoch wrote:

Hi,

I think there are some inconsistencies in how properties and methods are inherited by a project. A project inherits the convention and additional properties of its parent, but inherits all the methods of its parent, regardless of where they come from. For example, for a task 'taskA', the 'taskA' property is not inherited, but the task configuration method taskA(closure) is.

I think we should change this so that a project inherits the convention and script methods from its parent, but no other methods.

Good point. Could you file a Jira?

It is definitely worth of having a general discussion about inheritance and configuration injection. I like the concept of configuration injection. But in multi-project builds to inject for example dependencies into subprojects means they get resolved multiple times. This is pretty fast, as the stuff is in the cache. But it is still wasteful.

- Hans

--
Hans Dockter
Gradle Project lead
http://www.gradle.org





---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to