eclipse-cbi/targetplatform-dsl

Impossible to include source feature in TP

lredor opened this issue · 0 comments

With a targetplatform containing

location "myLocation" {
    id.of.my.feature.feature.group
}

, the .target result is:

<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="slicer" includeSource="false" type="InstallableUnit">
    <unit id="id.of.my.feature.feature.group" version="x.x.x.xxxxxxxx-xxxx"/>
    <repository location="myLocation"/>
</location>

What I expect, is to have:

<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="slicer" includeSource="false" type="InstallableUnit">
    <unit id="id.of.my.feature.feature.group" version="x.x.x.xxxxxxxx-xxxx"/>
    <unit id="id.of.my.feature.source.feature.group" version="x.x.x.xxxxxxxx-xxxx"/>
    <repository location="myLocation"/>
</location>

But

location "myLocation" {
    id.of.my.feature.feature.group
    id.of.my.feature.source.feature.group
}

is not possible because "source" is a "keyword". And with

location "myLocation" {
    id.of.my.feature.feature.group
    id.of.my.feature.^source.feature.group
}

I got this message:

No IU found for id.of.my.feature.^source.feature.group;version=="null"

For information, the "with source" option[1] only add source plugins but not source features.

[1] https://github.com/mbarbero/fr.obeo.releng.targetplatform#syntax