evaluating boolean variables to control installation [message #1464249] |
Fri, 07 November 2014 05:46  |
Eclipse User |
|
|
|
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.
|
|
|
Re: evaluating boolean variables to control installation [message #1464316 is a reply to message #1464249] |
Fri, 07 November 2014 07:14  |
Eclipse User |
|
|
|
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...
|
|
|
Powered by
FUDForum. Page generated in 0.03729 seconds