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

Summary: Enhance InstalledFileLocator to support multiple return values
Product: platform Reporter: Jesse Glick <jglick>
Component: Module SystemAssignee: Jesse Glick <jglick>
Status: RESOLVED FIXED    
Severity: blocker Keywords: API, ARCH
Priority: P4    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 41720, 42934, 113341    

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