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 214845 - Configured default cachedir in Platform app not used
Summary: Configured default cachedir in Platform app not used
Status: VERIFIED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Harness (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-27 07:54 UTC by harmanpa
Modified: 2012-06-28 15:47 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description harmanpa 2012-06-27 07:54:48 UTC
As with #209222 but in a platform based application, the configured default cachedir (netbeans_default_cachedir or default_cachedir) in
etc/_APPLICATION_.conf is not used.

My config was:
default_userdir="${HOME}/_COMPANY_/_APPLICATION_"
netbeans_default_cachedir="${HOME}/_COMPANY_/_APPLICATION_/Cache" (also tried default_cachedir)

-> user dir is  "${HOME}/_COMPANY_/_APPLICATION_"        -> correct
-> cache dir is "." (C:/Program Files (x86)/_COMPANY_/_APPLICATION_) -> bad, and causes application to exit without warning

I'm using NetBeans IDE 7.2 Beta (Build 201205031832)
Comment 1 Jiri Rechtacek 2012-06-27 09:41:41 UTC
Confirmed in latest development build.

As a workaround you can specify cachedir in etc/_APPLICATION_.conf in default_options="--cachedir C:\Users\Foo\Corp\Cache .... rest of options"

Thanks for your report.
Comment 2 harmanpa 2012-06-27 09:44:53 UTC
Thanks, I'm using --cachedir as a workaround, although I have not been able to make variable substitution work (either with $HOME or Windows environment variables) in this so it does need to be set for each machine.
Comment 3 Antonin Nebuzelsky 2012-06-27 13:37:04 UTC
This should be fixed in 7.2.
Comment 4 Libor Fischmeistr 2012-06-27 15:09:41 UTC
fixed in core-main/rev/606e949272b8
Comment 5 Tomas Danek 2012-06-27 15:54:32 UTC
verified in trunk; cachedir is now created correctly

Product Version: myAppDevNew 20120627-991f4acf50cc
Java: 1.7.0; Java HotSpot(TM) 64-Bit Server VM 21.0-b17
System: Windows Vista version 6.0 running on amd64; Cp1252; en_US (myappdevnew)
User directory: C:\Users\hudson\AppData\Roaming\.myappdevnew\dev
Cache directory: C:\Users\hudson\AppData\Roaming\.myappdevnew\dev\var\cache
Comment 6 Jiri Rechtacek 2012-06-27 16:01:23 UTC
http://hg.netbeans.org/releases/rev/36f7353a44b3
Comment 7 Quality Engineering 2012-06-28 04:54:13 UTC
Integrated into 'main-golden', will be available in build *201206280002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/606e949272b8
User: Libor Fischmeistr <lfischmeistr@netbeans.org>
Log: #214845: Configured default cachedir in Platform app not used
Comment 8 Quality Engineering 2012-06-28 05:08:01 UTC
Integrated into 'releases', will be available in build *201206272359* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/36f7353a44b3
User: Libor Fischmeistr <lfischmeistr@netbeans.org>
Log: #214845: Configured default cachedir in Platform app not used
(transplanted from 606e949272b8c6fa182f7ae73a7f59ccd7716d8e)
Comment 9 Tomas Danek 2012-06-28 09:26:54 UTC
v. in 7.2 rc1

Product Version: NetBeans IDE 7.2 RC1 (Build 201206272359)
Java: 1.7.0; Java HotSpot(TM) 64-Bit Server VM 21.0-b17
System: Windows Vista version 6.0 running on amd64; Cp1252; en_US (nb)
User directory: C:\Users\hudson\AppData\Roaming\NetBeans\7.2rc1
Cache directory: C:\Users\hudson\AppData\Local\NetBeans\Cache\7.2rc1
Comment 10 harmanpa 2012-06-28 15:47:16 UTC
Verified with our application using Build 201206280002, Java 1.6.0_33 on Windows 7   x64 and Windows XP

Thanks!