Bug 36701 - Enhance InstalledFileLocator to support multiple return values
Enhance InstalledFileLocator to support multiple return values
Status: RESOLVED FIXED
Product: platform
Classification: Unclassified
Component: Module System
3.x
All All
: P4 (vote)
: 6.x
Assigned To: Jesse Glick
issues@platform
: API, ARCH
Depends on:
Blocks: 41720 42934 113341
  Show dependency treegraph
 
Reported: 2003-10-20 21:29 UTC by Jesse Glick
Modified: 2010-01-06 11:15 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
:


Attachments

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,
localized);
    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


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo