This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 221316 - [73cat] NB ignores (settings in) netbeans.config
Summary: [73cat] NB ignores (settings in) netbeans.config
Status: RESOLVED INVALID
Alias: None
Product: platform
Classification: Unclassified
Component: Launchers&CLI (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-02 07:37 UTC by muellermi
Modified: 2012-11-02 15:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (44.59 KB, text/plain)
2012-11-02 07:37 UTC, muellermi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description muellermi 2012-11-02 07:37:02 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


I tried to change userdir by creating a netbeans.config in %userprofile%/etc
Every setting is ignored.

netbeans_default_userdir="d:/NetBeans/user"
netbeans_default_cachedir="d:/NetBeans/cache"


I tried this as well:
userdir="d:/NetBeans/user"
cachedir="d:/NetBeans/cache"


and Changing the location to %userprofile%. And I tried backslash instead of slash (usually Java itself translates the slash into system directory separator).
Comment 1 muellermi 2012-11-02 07:37:06 UTC
Created attachment 126972 [details]
IDE log
Comment 2 Libor Fischmeistr 2012-11-02 13:02:57 UTC
NetBeans launcher doesn't care about file netbeans.config in %userprofile% folder. You can edit or create netbeans.conf (note .conf not .config) in <default userdir>\etc\netbeans.conf but it's irrelevant to change there the userdir.

If you want to change userdir and cachedir do it in <NetBeans installation folder>\etc\netbeans.conf
Comment 3 muellermi 2012-11-02 13:52:13 UTC
Of course netbeans.conf. Just a typo.

And I found this:
"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]

But userdir is something different than %userprofile%. The latter only depends on the user who is logged in (and for which I want to specify individual dirs). Thus, it should be no problem to read this file just after the global conf file and before launching the rest. I created an isse (enhancement) 221351
Comment 4 Libor Fischmeistr 2012-11-02 15:14:24 UTC
(In reply to comment #3)
> Of course netbeans.conf. Just a typo.
> 
> And I found this:
> "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]

That's right, you can specifi it in local conf, but it ignored.

> But userdir is something different than %userprofile%. The latter only depends
> on the user who is logged in (and for which I want to specify individual dirs).
> Thus, it should be no problem to read this file just after the global conf file
> and before launching the rest. I created an isse (enhancement) 221351

Ok, let's look on that issue.