Lines Matching refs:file
21 import java.nio.file.Files;
22 import java.nio.file.Path;
148 for (File file : files) { in traverse()
150 String path = file.getPath().substring(2); in traverse()
153 if (!file.exists()) { in traverse()
158 if (Files.isSymbolicLink(file.toPath())) { in traverse()
159 Path target = Files.readSymbolicLink(file.toPath()).normalize(); in traverse()
169 if (file.isDirectory()) { in traverse()
174 excludedDirs.add(file); in traverse()
176 traverse(file, sourceRoots, jarFiles, excludedDirs, in traverse()
186 File sourceRoot = rootOf(file); in traverse()
194 Log.debug("Skipped: " + file); in traverse()
196 jarFiles.add(file); in traverse()
231 private static String parsePackageName(File file) throws IOException { in parsePackageName() argument
232 try (BufferedReader in = new BufferedReader(new FileReader(file))) { in parsePackageName()
258 for (File file : tailSet) { in excludesUnderSourceRoots()
259 if (file.getPath().startsWith(sourcePath)) { in excludesUnderSourceRoots()
260 picked.add(file); in excludesUnderSourceRoots()
277 public static void parseFile(File file, Collection<Pattern> patterns) in parseFile() argument
279 try (BufferedReader in = new BufferedReader(new FileReader(file))) { in parseFile()