Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » evaluating boolean variables to control installation
evaluating boolean variables to control installation [message #1464249] Fri, 07 November 2014 10:46 Go to next message
Alexander Nittka is currently offline Alexander NittkaFriend
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 Go to previous message
Ed Merks is currently offline Ed MerksFriend
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/
Previous Topic:Setup file for platform.ui - anybody working on it?
Next Topic:How to suppress the Questionnaire in automated tests?
Goto Forum:
  


Current Time: Wed Apr 24 22:19:04 GMT 2024

Powered by FUDForum. Page generated in 0.03443 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top