Lines Matching refs:File

17 import java.io.File;
37 public final SortedSet<File> sourceRoots;
40 public final List<File> jarFiles;
43 public final SortedSet<File> excludedDirs;
46 public final File toolDirectory;
56 this.toolDirectory = new File("development/tools/idegen"); in Configuration()
68 List<File> jarFiles = new ArrayList<File>(500); in Configuration()
69 SortedSet<File> excludedDirs = new TreeSet<File>(); in Configuration()
70 SortedSet<File> sourceRoots = new TreeSet<File>(); in Configuration()
72 traverse(new File("."), sourceRoots, jarFiles, excludedDirs, excludes); in Configuration()
91 File globalExcludes = new File(toolDirectory, EXCLUDED_PATHS); in readExcludes()
96 File googleExcludes = new File("./vendor/google/" + EXCLUDED_PATHS); in readExcludes()
102 File localExcludes = new File(EXCLUDED_PATHS); in readExcludes()
114 private static void traverse(File directory, Set<File> sourceRoots, in traverse()
115 Collection<File> jarFiles, Collection<File> excludedDirs, in traverse()
126 File[] files = directory.listFiles(); in traverse()
130 for (File file : files) { in traverse()
157 File sourceRoot = rootOf(file); in traverse()
178 private static File rootOf(File javaFile) throws IOException { in rootOf()
186 String packagePath = packageName.replace('.', File.separatorChar); in rootOf()
187 File parent = javaFile.getParentFile(); in rootOf()
194 return new File(parentPath.substring( in rootOf()
202 private static String parsePackageName(File file) throws IOException { in parsePackageName()
225 public SortedSet<File> excludesUnderSourceRoots() { in excludesUnderSourceRoots()
228 SortedSet<File> picked = new TreeSet<File>(); in excludesUnderSourceRoots()
229 for (File sourceRoot : sourceRoots) { in excludesUnderSourceRoots()
231 SortedSet<File> tailSet = excludedDirs.tailSet(sourceRoot); in excludesUnderSourceRoots()
232 for (File file : tailSet) { in excludesUnderSourceRoots()
251 public static void parseFile(File file, Collection<Pattern> patterns) in parseFile()