View | Details | Raw Unified | Return to bug 172820 | Differences between
and this patch

Collapse All | Expand All

(-)util_orig/org/eclipse/jdt/core/tests/util/Util.java (-8 / +20 lines)
Lines 656-671 Link Here
656
        };
656
        };
657
    }
657
    }
658
	if ("DRLVM".equals(vmName)) {
658
	if ("DRLVM".equals(vmName)) {
659
		FilenameFilter jarFilter = new FilenameFilter() {
659
		String bootclasspathProperty = System.getProperty("sun.boot.class.path");
660
			public boolean accept(File dir, String name) {
660
		if ((bootclasspathProperty != null) && (bootclasspathProperty.length() != 0)) {
661
				return name.endsWith(".jar") & !name.endsWith("-src.jar");
661
			StringTokenizer tokenizer = new StringTokenizer(bootclasspathProperty, File.pathSeparator);
662
			String[] jars = new String[tokenizer.countTokens()];
663
			int i = 0;
664
			while (tokenizer.hasMoreTokens()) {
665
				jars[i] = toNativePath(tokenizer.nextToken());
666
				i++;
662
			}
667
			}
663
		};
668
			return jars;
664
		String[] jars = new File(jreDir + "/lib/boot/").list(jarFilter);
669
		} else {
665
		for (int i = 0; i < jars.length; i++) {
670
			FilenameFilter jarFilter = new FilenameFilter() {
666
			jars[i] = toNativePath(jreDir + "/lib/boot/" + jars[i]);
671
				public boolean accept(File dir, String name) {
672
					return name.endsWith(".jar") & !name.endsWith("-src.jar");
673
				}
674
			};
675
			String[] jars = new File(jreDir + "/lib/boot/").list(jarFilter);
676
			for (int i = 0; i < jars.length; i++) {
677
				jars[i] = toNativePath(jreDir + "/lib/boot/" + jars[i]);
678
			}
679
			return jars;
667
		}
680
		}
668
		return jars;
669
	}
681
	}
670
    ArrayList paths = new ArrayList();
682
    ArrayList paths = new ArrayList();
671
    String[] jarsNames = new String[] {
683
    String[] jarsNames = new String[] {

Return to bug 172820