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.

View | Details | Raw Unified | Return to bug 113341
Collapse All | Expand All

(-)ModuleList.java (-1 / +1 lines)
Lines 189-195 Link Here
189
            Set<File> jars = InstalledFileLocator.getDefault().locateAll(jar, name, false);
189
            Set<File> jars = InstalledFileLocator.getDefault().locateAll(jar, name, false);
190
            if (jars.isEmpty()) {
190
            if (jars.isEmpty()) {
191
                throw new FileNotFoundException(jar);
191
                throw new FileNotFoundException(jar);
192
            } else if (jars.size() == 1) {
192
            } else if (jars.size() == 1 || Boolean.getBoolean("org.netbeans.core.startup.ModuleList.firstModuleJarWins")) {
193
                return jars.iterator().next();
193
                return jars.iterator().next();
194
            } else {
194
            } else {
195
                // Pick the newest one available.
195
                // Pick the newest one available.

Return to bug 113341