Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
1.3.2
-
None
Description
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)