evaluating boolean variables to control installation [message #1464249] |
Fri, 07 November 2014 10:46 |
Alexander Nittka Messages: 1193 Registered: July 2009 |
Senior Member |
|
|
Is there a way for evaluating the value of a boolean variable in a setup task (e.g. via a restriction)?
Two use cases are as follows.
a) I want to include a boolean variable asking the user whether a sample project should be imported.
b) A project has a wiki page that can be cloned and edited offline, just like the regular project. I want to ask whether the wiki (along with wiki editor plugins) should be part of the installation.
Depending on the value of the variable a setup task should be triggered or not.
Both of those use cases could be solved using streams, but I was wondering whether another control mechanism is possible. If you have 5 such choices in a project, a stream per combination is not feasible.
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext@itemis.de
|
|
|
Re: evaluating boolean variables to control installation [message #1464316 is a reply to message #1464249] |
Fri, 07 November 2014 12:14 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
Alexander,
Comments below.
On 07/11/2014 11:47 AM, Alexander Nittka wrote:
> Is there a way for evaluating the value of a boolean variable in a
> setup task (e.g. via a restriction)?
> Two use cases are as follows.
> a) I want to include a boolean variable asking the user whether a
> sample project should be imported.
>
> b) A project has a wiki page that can be cloned and edited offline,
> just like the regular project. I want to ask whether the wiki (along
> with wiki editor plugins) should be part of the installation.
No, there really isn't anything to help make things conditional. The
only approach right now is to make this a separate project that the user
can choose to install or not. E.g., with my latest JDT setup you can
see there are a bunch of test and even an example subproject that you
can choose to provision or not...
>
> Depending on the value of the variable a setup task should be
> triggered or not.
>
> Both of those use cases could be solved using streams, but I was
> wondering whether another control mechanism is possible. If you have 5
> such choices in a project, a stream per combination is not feasible.
It's all there is for now...
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03443 seconds