Using oomph's setup project model on a shared Install [message #1759445] |
Tue, 11 April 2017 13:55  |
Eclipse User |
|
|
|
Hi,
I am trying to use oomph to share/synchronise preferences across our developers.
However, we have the complication that eclipse is installed to a common area ("/opt" directory) so that it can be accessed by multiple users. I, however, have not been able to get the Setup Project Model to work under this configuration.
Essentially, I run the oomph installer as sudo and then in Advanced mode drag my setup file onto the eclipse.org top node and enable it. When the install completes, it is only when I also run eclipse as root that the setup file seems to be associated with the install.
When another user runs the eclipse instance, the .eclipse directory that is created has no reference to my project setup file. I was expecting it to appear in .eclipse/org.eclipse.oomph.setup/setups/org.eclipse.projects.setup
Even if I copy the relevant line from the root version of org.eclipse.projects.setup to the user's version of the file I cannot get it to use the setup file. Clicking on Navigate->Open Setup only shows the default user/installation/workspace setup files.
Am I using oomph correctly, or is there an alternative way of solving this issue?
Thanks in advance
|
|
|
|
Re: Using oomph's setup project model on a shared Install [message #1764983 is a reply to message #1759536] |
Mon, 05 June 2017 09:14   |
Eclipse User |
|
|
|
Hi,
Thanks for the previous reply. Sorry I haven't got back to you earlier but I was taken off my current project for a while.
Anyway I had a look at your answer and it seems I already have the installation.setup file moved to the psuedo installation directory, so I am not sure this is the answer.
Now, I am afraid the whole oomph implementation is way over my head, So maybe I should go back over my requirements.
Basically , in the past we have used workspace mechanic plugin,but it seems that oomph is the modern way of handling the synchronisation of preferences
Basically, when a user starts an instance of the shared install eclipse, I want each user to be able to pick up the common configuration setup (a file in our source code repository) and it to be applicable for all workspaces created for that install. Essentially, what the file user.home/.eclipse/org.eclipse.oomph.setup/setups/user.setup currently achieves, but for a specified path in my source checkout.
In the shared install case, the .eclipse and workspace folders are obviously created on the first execution of eclipse by the user. I was therefore hoping I could get oomph to somehow update the users instance of these folders to pick up the shared configuration at initialisation.
However, following the "Setup Project Model" workflow does not work for this use case as indicated in my first post. It only works for a private install where there is a single user.
Is there anyway I can get oomph to achieve my current objectives? Obviously I could change user.home/.eclipse/org.eclipse.oomph.setup/setups/user.setup for each user to be a symbolic link to the file in the repository checkout, but it feels like there should be a much more elegant way to achieve this built into oomph.
Any help would be greatly appreciated.
|
|
|
|
|
Re: Using oomph's setup project model on a shared Install [message #1765075 is a reply to message #1765063] |
Tue, 06 June 2017 08:07  |
Eclipse User |
|
|
|
I see. It looks like the copying was already implemented by 469279 some time ago.
So then if you define your own product (not project) catalog with your own product definitions with your own preference tasks you can centrally control all the preferences used by the shared installation and by any pseudo installation that uses it (because all will reference that one product version definition that you centrally control).
We've talked about defining some kind of "product extensions" that could also be referenced by the installation.setup so that you won't need to copy an existing product definition to create your own specialized one that just "extends" it with addition tasks. But that's not yet implemented. :-(
|
|
|
Powered by
FUDForum. Page generated in 0.07215 seconds