buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Donald (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (BUILDR-202) add ability for a project to have a before_define callback on subprojects
Date Wed, 22 Jun 2011 10:11:25 GMT

     [ 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

        

Mime
View raw message