public boolean accepts(VirtualFile file) { String name = exact ? file.getName() : file.getPathName(); return accepts(name); }
private void findFiles(URL jartoScan, Set<String> filePatterns, Map<String, Set<NamedInputStream>> map, Set<NamedInputStream> result) { if (filePatterns.isEmpty()) { for (Set<NamedInputStream> nims : map.values()) result.addAll(nims); } else { VirtualFile root = null; for (String pattern : filePatterns) { Set<NamedInputStream> niss = map.get(pattern); if (niss == null) { if (root == null) root = getFile(jartoScan); try { List<VirtualFile> children = root.getChildrenRecursively(new HibernatePatternFilter(pattern)); niss = toNIS(children); } catch (IOException e) { throw new RuntimeException(e); } } if (niss != null) result.addAll(niss); } } }
private void findFiles(URL jartoScan, Set<String> filePatterns, Map<String, Set<NamedInputStream>> map, Set<NamedInputStream> result) { if (filePatterns.isEmpty()) { for (Set<NamedInputStream> nims : map.values()) result.addAll(nims); } else { VirtualFile root = null; for (String pattern : filePatterns) { Set<NamedInputStream> niss = map.get(pattern); if (niss == null) { if (root == null) root = getFile(jartoScan); try { List<VirtualFile> children = root.getChildrenRecursively(new HibernatePatternFilter(pattern)); niss = toNIS(children); } catch (IOException e) { throw new RuntimeException(e); } } if (niss != null) result.addAll(niss); } } }
public boolean accepts(VirtualFile file) { String name = exact ? file.getName() : file.getPathName(); return accepts(name); }