Uploaded image for project: 'Buildr (Retired)'
  1. Buildr (Retired)
  2. BUILDR-202

add ability for a project to have a before_define callback on subprojects

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.3.2
    • 1.3.4
    • Core features
    • 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)

      Attachments

        Activity

          People

            Unassigned Unassigned
            ittayd Ittay Dror
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: