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: | API to find an installation-relative file | ||
---|---|---|---|
Product: | platform | Reporter: | Jesse Glick <jglick> |
Component: | Module System | Assignee: | Jesse Glick <jglick> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | issues, issues, issues, issues, jtulach, pjiricka, sdedic |
Priority: | P2 | Keywords: | API, ARCH |
Version: | 3.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 28733, 27151, 27852, 28376, 28663, 28666, 28668, 28729, 28732, 28736 |
Description
Jesse Glick
2002-11-12 18:02:20 UTC
See also comments in issue #28666. Forgot to mention another argument for autoupdate supplying the default: it could be more accurate than the current situation - thus solving a bug! so I can mark this a DEFECT! :-) Say x-1.0.nbm contains: modules/x.jar docs/X-APIs.zip and x-1.1.nbm contains the same files, but of course newer. Say also that x-1.0.nbm was installed in the user directory, but then later x-1.1.nbm was installed in the global directory - so that the module system quietly upgrades the user to 1.1. Now say that code in x.jar searches ${netbeans.user} and ${netbeans.home} for "docs/X-APIs.zip". It will find the old version! If autoupdate implements the locator, it has a chance to know that the active version of x.jar is coming from the x-1.1.nbm which is in ${netbeans.home}, and thus to search only there. (Using the module code source *would* work correctly though.) This kind of logic cannot easily be done by the locator client, only the provider. Putting the locator impl in core might work here, since core also knows where a module comes from, though it does not install associated files from an NBM. There's also some code in Java module, which could be replaced by this feature :-) committed * Up-To-Date 1.9 core/manifest.mf added * Up-To-Date 1.1 core/src/META-INF/services/org.openide.modules.InstalledFileLocator committed * Up-To-Date 1.169 core/src/org/netbeans/core/NbTopManager.java added * Up-To-Date 1.1 core/src/org/netbeans/core/modules/InstalledFileLocatorImpl.java committed * Up-To-Date 1.86 openide/openide-spec-vers.properties committed * Up-To-Date 1.113 openide/api/doc/changes/apichanges.xml committed * Up-To-Date 1.48 openide/api/doc/org/openide/doc-files/upgrade.html committed * Up-To-Date 1.82 openide/api/doc/org/openide/modules/doc-files/api.html added * Up-To-Date 1.1 openide/src/org/openide/modules/InstalledFileLocator.java And used too, in some common NB modules: committed * Up-To-Date 1.11 core/javahelp/manifest.mf committed * Up-To-Date 1.5 core/javahelp/src/org/netbeans/modules/javahelp/NbDocsStreamHandler.java committed * Up-To-Date 1.4 core/src/org/netbeans/core/modules/HelpHelper.java committed * Up-To-Date 1.54 form/manifest.mf committed * Up-To-Date 1.75 form/src/org/netbeans/modules/form/FormEditorModule.java committed * Up-To-Date 1.65 java/manifest.mf committed * Up-To-Date 1.17 java/src/org/netbeans/modules/java/environment/LibraryProcessor.java committed * Up-To-Date 1.6 java/src/org/netbeans/modules/java/environment/Utilities.java committed * Up-To-Date 1.55 javadoc/manifest.mf committed * Up-To-Date 1.13 javadoc/src/org/netbeans/modules/javadoc/search/environment/JavadocProcessor.java committed * Up-To-Date 1.3 javadoc/src/org/netbeans/modules/javadoc/search/environment/Utilities.java committed * Up-To-Date 1.33 usersguide/manifest.mf committed * Up-To-Date 1.24 usersguide/src/org/netbeans/modules/usersguide/UGModule.java committed * Up-To-Date 1.46 utilities/manifest.mf committed * Up-To-Date 1.5 utilities/src/org/netbeans/modules/pdf/LinkProcessor.java |