You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Peter Donald (JIRA)" <ji...@apache.org> on 2011/06/22 12:11:25 UTC

[jira] [Closed] (BUILDR-202) add ability for a project to have a before_define callback on subprojects

     [ https://issues.apache.org/jira/browse/BUILDR-202?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Donald closed BUILDR-202.
-------------------------------


> add ability for a project to have a before_define callback on subprojects
> -------------------------------------------------------------------------
>
>                 Key: BUILDR-202
>                 URL: https://issues.apache.org/jira/browse/BUILDR-202
>             Project: Buildr
>          Issue Type: Improvement
>          Components: Core features
>    Affects Versions: 1.3.2
>            Reporter: Ittay Dror
>             Fix For: 1.3.4
>
>
> Sometimes it is useful to preconfigure subprojects of a project (the project acts as a configuration context). However, there's no way for the project to arrange things so that if it has a before_define method, it will be called before each subproject definition. The point is not to create an Extension that will be called for all projects in the buildfile, just for the sub projects. 
> I think adding such a feature is possible, since each project registers its callbacks in Project#initialize. Either then, or in Project#define, it can locate its parent to find if it has a before_define method (or whatever other mechanism)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira