jerrychen100d / rabbit-eclipse

Automatically exported from code.google.com/p/rabbit-eclipse
0 stars 1 forks source link

Storage Location Resets on Eclipse Restart #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Running eclipse portable from USB drive
2. Set new storage location in preferences
3. Restart eclipse

What is the expected output? What do you see instead?

Default location is non existent folder 'C:\Users\user\Rabbit' so no data is 
stored initially.  Tracking works once a new location is set, but the storage 
location resets to the default every time eclipse is shutdown and restarted.

What version of the product are you using? On what operating system?

1.2.1.201102121140  
Running on windows vista.
Eclipse running on USB thumb drive

Original issue reported on code.google.com by C.Giaco...@gmail.com on 19 Aug 2011 at 12:36

GoogleCodeExporter commented 9 years ago
Hi, thanks for the report.

The preference for storage location is stored in a file called 
".rabbit.properties" under the user's home directory, so each user will have 
his/her own settings.

I've tested with running Eclipse 3.7 from a USB stick under Windows 7 (sorry I 
don't have access to Vista) and everything seems to work as expected - Rabbit 
uses the settings I've set, after restarting Eclipse.

I've had issues with Vista before so I wouldn't be surprise if this issue only 
occurs under Vista. But would you be able to tell me a bit more about the 
problem? Is 'C:\Users\user\Rabbit' the default storage location Rabbit 
presented to you and what happen when Rabbit tried to save data there (any 
errors?)? And did you mean Rabbit resets the location to 'C:\Users\user\Rabbit' 
every time you restart Eclipse even in the same user account? And is 'user' the 
name of user on the machine that you were running Eclipse?

Thanks.

Original comment by llaec...@gmail.com on 11 Sep 2011 at 3:57

GoogleCodeExporter commented 9 years ago
1) Yes 'C:\Users\user\Rabbit' is the default given by rabbit.  The folder does 
not exist so no data is stored.

2) The storage location resets every time eclipse is started, even with the 
same user account running.

3) No, 'user' is no the user name on the machine.

I suppose if Rabbit is trying to save it's setting under 'C:\Users\user\' 
(which doesn't exist) that would explain why it resets every time I shutdown 
eclipse.

Original comment by C.Giaco...@gmail.com on 12 Sep 2011 at 1:47

GoogleCodeExporter commented 9 years ago
Rabbit uses "user.home" system property to determine the user's home directory. 
After some research, I found some JDK bug reports relating to this approach:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6519127
http://bugs.sun.com/view_bug.do?bug_id=4787931

Not sure if they are related to your case, but I'll try to do experiments when 
I have access to Vista. If you have found a work around to this problem please 
let me know too.

Original comment by llaec...@gmail.com on 12 Sep 2011 at 8:47