308 for (String pkg: pkgs) { |
308 for (String pkg: pkgs) { |
309 for (JavaFileObject fo: fm.list(javacLoc, |
309 for (JavaFileObject fo: fm.list(javacLoc, |
310 pkg, EnumSet.of(JavaFileObject.Kind.CLASS), true)) { |
310 pkg, EnumSet.of(JavaFileObject.Kind.CLASS), true)) { |
311 String name = fo.getName(); |
311 String name = fo.getName(); |
312 // ignore resource files, and files which are not really part of javac |
312 // ignore resource files, and files which are not really part of javac |
313 if (name.matches(".*resources.[A-Za-z_0-9]+\\.class") |
313 if (name.matches(".*resources.[A-Za-z_0-9]+\\.class.*") |
314 || name.endsWith("Launcher.class") |
314 || name.matches(".*CreateSymbols\\.class.*")) |
315 || name.endsWith("CreateSymbols.class")) |
|
316 continue; |
315 continue; |
317 scan(fo, results); |
316 scan(fo, results); |
318 } |
317 } |
319 } |
318 } |
320 return results; |
319 return results; |