Bug 221351 - [73cat] permanent or easy config of userdir/cachedir
[73cat] permanent or easy config of userdir/cachedir
Status: NEW
Product: platform
Classification: Unclassified
Component: Launchers&CLI
7.3
PC Windows 7
: P2 with 6 votes (vote)
: TBD
Assigned To: Libor Fischmeistr
issues@platform
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-02 13:43 UTC by muellermi
Modified: 2015-01-15 07:40 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description muellermi 2012-11-02 13:43:25 UTC
Product Version = NetBeans IDE Dev (Build 201211020001)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_09
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.5-b02


Problem (applies to Windows OS):
To keep a user's profile small (and thus to reduce boot time if it is a server side profile), NB's userdir and cachedir have to be placed outside the user's profile (%userprofile%).
a) persists this information, to re-use it after a new version is installed 
or 
b) query this information durig install

comments
a) this information might be stored in %userprofile%/etc/netbeans.conf

currently this is not supported
"netbeans_default_userdir
    The default location and name of the userdir . Note that this entry is only valid in the global configuration file. (It cannot be redefined in the local netbeans.conf file, because the launcher already needs to know the location of the userdir when the local netbeans.conf file is being processed.) " [http://wiki.netbeans.org/FaqNetbeansConf]

solution: since %userprofile% is different to userdir and only depends on the user who is logged in, it must be possible to read this file just after the global conf file. Individual setting override global settings.

b) simply query it in installation wizzard.
Apply two text fields for userdir and cachedir and populate current values as default. Let the user choose different locations (similar to choose JDK)
If this will be to much information query, then replace JDK selection by a button "customize". If th user pressed this button, a new dialog opens to select JDK, userdir, cachedir

I prefer to implement a) and b). If only one can be implemented, I prefer a) over b)
Comment 1 matthias42 2015-01-15 07:05:04 UTC
Is this still an issue? I checked on my windows installation @work. The structure looks sane:

I use netbeans 8 and got:
- Cache-Dir is c:\Users\<user>\AppData\Local\NetBeans\Cache\8.0
- Config-Dir is C:\Users\<user>\AppData\Roaming\NetBeans\8.0

While the cache is _big_, the config is for me 40MB.

According to http://windows.microsoft.com/en-us/windows-8/what-appdata-folder this looks ok, as only the 40 MB are part of the roaming profile and are moved when changing PCs.
Comment 2 muellermi 2015-01-15 07:40:59 UTC
Yes, it still is a big issue, thus I set it to P2 just now.
Although the user dir is the smaller one, NetBeans often is the no 1 candidate to make login and logoff at a windows system slow.
And, people dividing their hard disk (especia if it is al smaller SSDs) into two drives (c: -> system, d: -> data) will run out of space after a year of frequent windwos updates.

_I_ knwow how to use other folders and point to them by using command line parameters. But, it is an annoying job to chang this every time, espeical if you frequently download nightly builds.
And, most people don't know how to change it, nor do they know, that there is such an option. And without the later knowledge, they wont search a faq.
Thus, I still recommend to offer an option during installation.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo