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 36701 - Enhance InstalledFileLocator to support multiple return values
Summary: Enhance InstalledFileLocator to support multiple return values
Alias: None
Product: platform
Classification: Unclassified
Component: Module System (show other bugs)
Version: 3.x
Hardware: All All
: P4 blocker (vote)
Assignee: Jesse Glick
Keywords: API, ARCH
Depends on:
Blocks: 41720 42934 113341
  Show dependency tree
Reported: 2003-10-20 21:29 UTC by Jesse Glick
Modified: 2010-01-06 11:15 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2003-10-20 21:29:21 UTC
Proposed compatible API change.

public File[] locateMultiple(String relativePath,
String codeNameBase, boolean localized) {
    File f = locate(relativePath, codeNameBase,
    if (f != null) {
        return new File[] {f};
    } else {
        return new File[0];

with corresponding impl in core.

Most useful when the path refers to a directory,
and the client code wishes to merge results from
multiple installation prefixes.

See AntBridge (ant module), which currently cannot
load ant/nblib/*.jar from multiple installation
directories (without hacks), and so currently
forces providers of IDE-internal extension tasks
to be installed in the same installation directory
as the ant module itself.
Comment 1 Jesse Glick 2003-12-24 21:23:22 UTC
Not needed for issue #38306.
Comment 2 Jesse Glick 2008-12-10 00:43:53 UTC
Not known to be needed.
Comment 3 Jesse Glick 2009-12-21 16:05:12 UTC
Needed for bug #113341.
Comment 4 Jesse Glick 2010-01-06 11:15:39 UTC
core-main #1fcfef0f3d39