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 87577 - Use CacheDirectoryProvider
Summary: Use CacheDirectoryProvider
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-19 23:53 UTC by Jesse Glick
Modified: 2016-07-07 07:17 UTC (History)
1 user (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 Jesse Glick 2006-10-19 23:53:13 UTC
AFAIK Retouche currently uses ${userdir}/var/cache/index/ for storing signature
files and other Java source information caches. For source roots owned by a
project (the normal case) consider using a project's CacheDirectoryProvider
instead. This would help keep caches near the files they are caching, and
prevent disk space leaks from deleted projects. I am assuming that the caches
for independent source roots are themselves independent, i.e. there is no need
for a unified database.
Comment 1 Tomas Zezula 2006-10-22 12:00:25 UTC
You are right, the caches for independent source roots are independent. The only
thing I am afraid is that people will complain about the quite big IDE data
under the project root.
Comment 2 jrojcek 2006-10-23 08:39:26 UTC
Normally users who use a versioning system for sharing projects should not care. But if the user wants to 
zip a project and send it to a friend, then it might be a problem. Can you estimate how big is the cache for 
100, 1000, ... files big project?
Comment 3 Jesse Glick 2006-10-23 16:58:11 UTC
The cache directory is under nbproject/private/ so (like other private settings)
it should never be included in a project source ZIP.

BTW we should really productize the Project Packager module...
Comment 4 Jesse Glick 2009-07-31 15:40:23 UTC
Not sure if this is WONTFIX for one reason or another, but FYI there is now a method in ProjectUtils to get a cache dir
for a project.
Comment 5 Jan Lahoda 2009-08-20 09:59:54 UTC
Reassigning all moonko's java/source bugs to myself.
Comment 6 Martin Balin 2016-07-07 07:17:22 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss