ssi-schaefer / lcdsl

Eclipse Launch Configuration DSL (Xtext based)
Eclipse Public License 1.0
23 stars 12 forks source link

Introduction of variables in lcdsl #73

Open EaseRider opened 1 year ago

EaseRider commented 1 year ago

I have the following configuration:

abstract swtbot configuration Base-UI-Test {
    product MyProduct;
    content-provider "${workspace_loc:MyProduct}/target/classes/product.product";
}
swtbot configuration My-Plugin-UI-Test : Base-UI-Test {
    plugin MyPlugin;
    workspace "${workspace_loc:/MyPlugin}/target/swt-workspace";

    test {
        runner junit4;
        container '/MyPlugin';
    }
}

and with variables I would like to be able to do something like this:

abstract swtbot configuration Base-UI-Test {
    product MyProduct;
    content-provider "${workspace_loc:MyProduct}/target/classes/product.product";

    workspace "${workspace_loc:/$testPlugin}/target/swt-workspace";

    test {
        runner junit4;
        container '/$testPlugin';
    }
}
swtbot configuration My-Plugin-UI-Test : Base-UI-Test {
    plugin MyPlugin;
    var testPlugin="MyPlugin";
}

I'm not sure what all is possible within the editor for pre validating the code.

Maybe it would even be possible in Non-String arguments for: plugin $testPlugin;