Home » Eclipse Projects » Oomph » restore original preferences (was oomph installer directory gets used as workspace folder)
restore original preferences (was oomph installer directory gets used as workspace folder) [message #1702432] |
Wed, 22 July 2015 10:17 |
Joerg Buchberger Messages: 46 Registered: July 2009 |
Member |
|
|
Hi there
my product (customized IDE) gets installed and
now also my own projects are setup (although I first had to learn that I need to double-click the setup in the wizard before I can really select my stream and that that was missing).
However, I now face the problem, that always the oomph installers directory gets used as workspace folder for my newly setup custom IDE...
I'm a little lost as how to predefine the workspace to the path where I need the workspace really to be located at.
I could perhaps use Resource Creation in my product setup to override the ini file and placing a
in there, but that's somewhat error prone, because other defaults placed by oomph into the default ini will have to be maintained by hand by me, if something changes during later updates.
Cheers
Jörg
[Updated on: Thu, 30 July 2015 10:36] Report message to a moderator
|
|
| | | |
Re: oomph installer directory gets used as workspace folder [message #1702466 is a reply to message #1702449] |
Wed, 22 July 2015 13:47 |
Joerg Buchberger Messages: 46 Registered: July 2009 |
Member |
|
|
Eike Stepper wrote on Wed, 22 July 2015 08:29
>
> Hmm, I don't even know, what a WorkspaceTask is. Where and how can I add it?
You don't need to because the Github.com catalog already contains it for you.
> What can be achieved using it?
The only non-internal purpose of it is to be able to refer to its automatically computed attributes, e.g.,
${workspace.location}.
> See here for my current state of the project setup: https://gist.github.com/jbuchberger/f9a1fd9ac44d58d44333
I don't think you should decalre the variables "install.root" and "workspace.location". They're predefined and will be
prompted by the installer.
Cheers
/Eike
OK, thanks. So, how I can I preset a default for install.root then?
(There are some local policies here, we should adhere, too. And also some scripts relying on certain folder structures to be the same on each workstation.)
Cheers
Jörg
[Updated on: Wed, 22 July 2015 13:47] Report message to a moderator
|
|
| | | |
Re: oomph installer directory gets used as workspace folder [message #1702721 is a reply to message #1702711] |
Fri, 24 July 2015 09:36 |
|
Am 24.07.2015 um 11:06 schrieb Joerg Buchberger:
> Eike Stepper wrote on Fri, 24 July 2015 02:41
>> ...
>> So we've investigated this a little more and it's generally possible to write an absolute path directly into the
>> "location" attribute of the InstallationTask. The remaining problem is that the product catalogs all contain such an
>> InstallationTask already and that InstallationTaskImpl currently doesn't support overriding. We can implement
>> overriding for both the InstallationTask and the WorkspaceTask if you want. Please submit an enhancement request.
>
>
> OK, I can do that. Before that, I'd like to better understand, though,
> what exactly is bad about putting an "install.root" variable into the setup.
> Because, so far, that seemed good enough for me.
The main problem is that the installer may create a VariableTask with the same name in your user.setup and that would
override the one in your (product?) setup.
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Re: oomph installer directory gets used as workspace folder [message #1702742 is a reply to message #1702721] |
Fri, 24 July 2015 12:21 |
Joerg Buchberger Messages: 46 Registered: July 2009 |
Member |
|
|
Eike Stepper wrote on Fri, 24 July 2015 05:36 ...
> OK, I can do that. Before that, I'd like to better understand, though,
> what exactly is bad about putting an "install.root" variable into the setup.
> Because, so far, that seemed good enough for me.
The main problem is that the installer may create a VariableTask with the same name in your user.setup and that would
override the one in your (product?) setup.
Does that mean, a variable in the user.setup will always override the ones from product or project setups?
So, what could make the installer create such a variable in user.setup?
Cheers
Jörg
|
|
|
Re: oomph installer directory gets used as workspace folder [message #1702757 is a reply to message #1702742] |
Fri, 24 July 2015 13:22 |
|
Am 24.07.2015 um 14:21 schrieb Joerg Buchberger:
> Eike Stepper wrote on Fri, 24 July 2015 05:36
>> ...
>> > OK, I can do that. Before that, I'd like to better understand, though,
>> > what exactly is bad about putting an "install.root" variable into the setup.
>> > Because, so far, that seemed good enough for me.
>>
>> The main problem is that the installer may create a VariableTask with the same name in your user.setup and that would
>> override the one in your (product?) setup.
>
>
> Does that mean, a variable in the user.setup will always override the ones from product or project setups?
Yes, always. This way a user can influence the results of the other setup models.
> So, what could make the installer create such a variable in user.setup?
The "install.root" variable is a so called rule variable, i.e., it's induced by the attribute rule that the user picks
for the installation location. You can see that rule at the top of your user.setup once you've done a normal
installation. There's only a handful of such rule variables. All other variable tasks that the installer might create in
your user.setup are always restricted to the scope that originally declared that variable, e.g., the "git.user.id"
variable that's declared in the Eclipse.org project catalog.
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
| |
restore original preferences (was Re: oomph installer directory gets used as workspace folder) [message #1703288 is a reply to message #1702778] |
Thu, 30 July 2015 10:34 |
Joerg Buchberger Messages: 46 Registered: July 2009 |
Member |
|
|
Joerg Buchberger wrote on Fri, 24 July 2015 10:21Eike Stepper wrote on Fri, 24 July 2015 09:22...
> Does that mean, a variable in the user.setup will always override the ones from product or project setups?
Yes, always. This way a user can influence the results of the other setup models.
Hmm, is there a simple way for a user to reset a specific change he did in his preferences?
Let's say, I preconfigured some server runtimes in the project setup preferences.
Now, imagine one of my follow developers accidentally messing it up in his user preferences.
How could I help him restore the orginal setup quickly?
Or can I protect him to some extent using annotations in project setup UserPreferences, so he doesn't shoot his own foot as easily?
<?xml version="1.0" encoding="UTF-8"?>
<base:StringToStringMapEntry
xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:base="http://www.eclipse.org/oomph/base/1.0"
key="/instance/org.eclipse.wst.server.core/runtimes">
<value>ignore</value>
</base:StringToStringMapEntry>
Would this help?
Cheers
Jörg
Or is the only way to restore original state by manual merge or copy/paste from original setup to user setup?
Cheers
Jörg
[Updated on: Thu, 30 July 2015 10:36] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sun Dec 08 07:37:41 GMT 2024
Powered by FUDForum. Page generated in 0.04527 seconds
|