Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
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 Go to next message
Joerg Buchberger is currently offline Joerg BuchbergerFriend
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
-data
../workspace

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 #1702443 is a reply to message #1702432] Wed, 22 July 2015 11:24 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6692
Registered: July 2009
Senior Member
Am 22.07.2015 um 12:17 schrieb Joerg Buchberger:
> 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.
Hard to say what the problem is without being able to see your project setup model. To what catalog does it belong? Does
it contain a WorkspaceTask?

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 #1702447 is a reply to message #1702443] Wed, 22 July 2015 11:56 Go to previous messageGo to next message
Joerg Buchberger is currently offline Joerg BuchbergerFriend
Messages: 46
Registered: July 2009
Member
Eike Stepper wrote on Wed, 22 July 2015 07:24

Hard to say what the problem is without being able to see your project setup model. To what catalog does it belong? Does
it contain a WorkspaceTask?


Thanks for the quick reply.

My setup is in the user space (drag and drop from local disk). In the installer wizard it shows beneath "Github.com/<User>/".

Hmm, I don't even know, what a WorkspaceTask is. Where and how can I add it? What can be achieved using it?

See here for my current state of the project setup: https://gist.github.com/jbuchberger/f9a1fd9ac44d58d44333

Cheers
Jörg
Re: oomph installer directory gets used as workspace folder [message #1702449 is a reply to message #1702447] Wed, 22 July 2015 12:29 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6692
Registered: July 2009
Senior Member
Am 22.07.2015 um 13:56 schrieb Joerg Buchberger:
> Eike Stepper wrote on Wed, 22 July 2015 07:24
>> Hard to say what the problem is without being able to see your project setup model. To what catalog does it belong?
>> Does it contain a WorkspaceTask?
>
>
> Thanks for the quick reply.
>
> My setup is in the user space (drag and drop from local disk). In the installer wizard it shows beneath
> "Github.com/<User>/".
>
> 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

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: oomph installer directory gets used as workspace folder [message #1702466 is a reply to message #1702449] Wed, 22 July 2015 13:47 Go to previous messageGo to next message
Joerg Buchberger is currently offline Joerg BuchbergerFriend
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 #1702502 is a reply to message #1702466] Wed, 22 July 2015 18:25 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6692
Registered: July 2009
Senior Member
Am 22.07.2015 um 15:47 schrieb Joerg Buchberger:
> OK, 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.)
I don't think that it's possible to define mandatory values for these local paths but I'd like to hear Ed's opinion when
he's back tomorrow...

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 #1702682 is a reply to message #1702502] Fri, 24 July 2015 06:41 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6692
Registered: July 2009
Senior Member
Am 22.07.2015 um 20:25 schrieb Eike Stepper:
> Am 22.07.2015 um 15:47 schrieb Joerg Buchberger:
>> OK, 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.)
> I don't think that it's possible to define mandatory values for these local paths but I'd like to hear Ed's opinion
> when he's back tomorrow...
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.

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 #1702711 is a reply to message #1702682] Fri, 24 July 2015 09:06 Go to previous messageGo to next message
Joerg Buchberger is currently offline Joerg BuchbergerFriend
Messages: 46
Registered: July 2009
Member
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.

Cheers
Jörg

Re: oomph installer directory gets used as workspace folder [message #1702721 is a reply to message #1702711] Fri, 24 July 2015 09:36 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6692
Registered: July 2009
Senior Member
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


Re: oomph installer directory gets used as workspace folder [message #1702742 is a reply to message #1702721] Fri, 24 July 2015 12:21 Go to previous messageGo to next message
Joerg Buchberger is currently offline Joerg BuchbergerFriend
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 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6692
Registered: July 2009
Senior Member
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


Re: oomph installer directory gets used as workspace folder [message #1702778 is a reply to message #1702757] Fri, 24 July 2015 14:21 Go to previous messageGo to next message
Joerg Buchberger is currently offline Joerg BuchbergerFriend
Messages: 46
Registered: July 2009
Member
Eike 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

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 Go to previous message
Joerg Buchberger is currently offline Joerg BuchbergerFriend
Messages: 46
Registered: July 2009
Member
Joerg Buchberger wrote on Fri, 24 July 2015 10:21
Eike 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

Previous Topic:Project import via project catalog
Next Topic:Create launcher shortcut
Goto Forum:
  


Current Time: Sun Dec 08 07:37:41 GMT 2024

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

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

Back to the top