Lines Matching defs:dir
276 * @param dir The directory to scan
280 public boolean addDirectory(String dir) {
281 String directory = dir;
344 for (String dir : directories) {
346 if ("".equals(dir)) {
349 sourceRoot = new File(RuntimeEnvironment.getInstance().getSourceRootFile(), dir);
354 String startuid = Util.path2uid(dir, "");
380 log.log(Level.INFO, "Counting files in {0} ...", dir);
381 file_cnt = indexDown(sourceRoot, dir, true, 0, 0);
383 log.log(Level.INFO, "Need to process: {0} files for {1}", new Object[]{file_cnt, dir});
387 indexDown(sourceRoot, dir, false, 0, file_cnt);
599 log.log(Level.FINE, "Removed empty xref dir:{0}", parent.getAbsolutePath());
809 * @param dir the root indexDirectory to generate indexes for
817 private int indexDown(File dir, String parent, boolean count_only, int cur_count, int est_total) throws IOException {
823 if (!accept(dir)) {
827 File[] files = dir.listFiles();
829 log.log(Level.SEVERE, "Failed to get file listing for: {0}", dir.getAbsolutePath());
840 if (accept(dir, file)) {