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
PC Windows 7
: P3 with 2 votes (vote)
Assigned To: Libor Fischmeistr
Depends on:
  Show dependency treegraph
Reported: 2012-11-02 13:43 UTC by muellermi
Modified: 2014-02-10 14:16 UTC (History)
0 users

See Also:


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 
b) query this information durig install

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

currently this is not supported
    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)

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