Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 337569
Collapse All | Expand All

(-)defaultAdaptor/src/org/eclipse/osgi/baseadaptor/BaseAdaptor.java (-2 / +2 lines)
Lines 577-585 Link Here
577
		Filter patternFilter = null;
577
		Filter patternFilter = null;
578
		Hashtable<String, String> patternProps = null;
578
		Hashtable<String, String> patternProps = null;
579
		if (filePattern != null) {
579
		if (filePattern != null) {
580
			// Optimization: If the file pattern does not include a wildcard then it must represent a single file.
580
			// Optimization: If the file pattern does not include a wildcard  or escape  char then it must represent a single file.
581
			// Avoid pattern matching and use BundleFile.getEntry() if recursion was not requested.
581
			// Avoid pattern matching and use BundleFile.getEntry() if recursion was not requested.
582
			if (filePattern.indexOf('*') == -1 && (options & BundleWiring.FINDENTRIES_RECURSE) == 0) {
582
			if ((options & BundleWiring.FINDENTRIES_RECURSE) == 0 && filePattern.indexOf('*') == -1 && filePattern.indexOf('\\') == -1) {
583
				path += path.charAt(path.length() - 1) == '/' ? filePattern : '/' + filePattern;
583
				path += path.charAt(path.length() - 1) == '/' ? filePattern : '/' + filePattern;
584
				for (BundleFile bundleFile : bundleFiles) {
584
				for (BundleFile bundleFile : bundleFiles) {
585
					if (bundleFile.getEntry(path) != null && !pathList.contains(path))
585
					if (bundleFile.getEntry(path) != null && !pathList.contains(path))

Return to bug 337569