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.
Summary: | Netbinox caches should not crash product if findInstallationArea() changes | ||
---|---|---|---|
Product: | platform | Reporter: | stoto79 |
Component: | Netigso | Assignee: | Jaroslav Tulach <jtulach> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | apireviews, jrechtacek |
Priority: | P2 | Keywords: | API_REVIEW_FAST |
Version: | 7.4 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
The tests that seem to demonstrate the failures
Tests, implementation and note in arch.xml |
Description
stoto79
2013-04-05 23:30:43 UTC
The puzzler that keeps me busy is: Should the system detect when just the top most directory changes or any change to the list of clusters? For the JDev case, this is probably the same as addition of new clusters caused the common installation prefix to change. However for NetBeans, this would not be the case. All clusters are usually placed under directory "netbeans" and adding new ones won't change the common installation prefix at all. The first approach could invalidate just the cache from core.netigso module (however that is unlikely correct, other files, for example containing list of modules have probably changed as well). The latter approach requires us to store a checksum file (recording information about cache at the time of creation). There currently is such checksum file, but only in user directory and moreover it contains a bit too much information which might now be after installation (like time stamps of .lastModified files in each cluster). Created attachment 133499 [details]
The tests that seem to demonstrate the failures
Requesting API change review, as I am about to add new file into the cache which may affect installer. Created attachment 133505 [details]
Tests, implementation and note in arch.xml
Unless there are objections, I'll integrate the change tomorrow. ergonomics#997ae78bd4b6 Integrated into 'main-golden', will be available in build *201304272301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/997ae78bd4b6 User: Jaroslav Tulach <jtulach@netbeans.org> Log: #228318: Store relative paths of clusters with respect to common shared prefix |