Feature #318

Request: sub-distributions that can be included in distributions

Added by Simon Schulz about 10 years ago. Updated almost 6 years ago.

Status:ResolvedStart date:2014-10-31
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:-Spent time:-
Target version:-

Description

Is there a way to define a "sub-distribution" that can be included in your distribution?
E.g. the flobi simulation needs a set of ~8 projects. Everytime we define a distribution that uses
that flobi sim we have to copy and paste these 8 projects.
When we add a dependency we have to do that on all packages...
It would be really nice to have such a feature.

screenshot.png (220.933 KB) Jan Moringen, 2014-10-31 17:13


Related issues

duplicates Cognitive Interaction Toolkit - Feature #195: Re-use system [old term: distribution] definitions Resolved 2013-12-02

History

#1 Updated by Jan Moringen about 10 years ago

Upstream Issue.

One the next generator versions will support this. The current syntax proposal is like this (assuming the filename is toolkit.distribution):

{
    "include": {
        "distributions": [
            [ "rosetta", "${rosetta-version}" ],
            [ "rsx",     "${rsx-version}"     ]
        ],
        "projects":      [
            [ "cbf",                     "0.2"           ],
            [ "kdl",                     "master"        ],
        ]
    },

    "versions":  [

        {
            "name":      "master",

            "variables": {
                "rsx-version":     "nightly",
                "rosetta-version": "nightly" 
            }
        },

        {
            "name":     "0.2",

            "variables": {
                "rsx-version":     "0.10",
                "rosetta-version": "nightly" 
            },

            "include":  {
                "projects": [
                    [ "cbf",                   "0.2"            ],
                    [ "kdl",                   "master"         ]
                ]
            }
        },

        {
            "name":     "0.1",

            "variables": {
                "rsx-version":     "0.9",
                "rosetta-version": "nightly" 
            },

            "include":  {
                "projects": [
                    [ "cbf",                   "0.1"            ],
                    [ "kdl",                   "master"         ]
                ]
            }
        }
    ]

}

The effect is illustrated in the attached screenshot.

#2 Updated by Jan Moringen almost 6 years ago

  • Status changed from Rejected to Resolved
  • % Done changed from 0 to 100

Now available in the build-generator master branch.

Also available in: Atom PDF