Lines Matching defs:dir
59 test(createFileManager(), createDir("dir", entries), "p", entries);
60 test(createFileManager(), createDir("a b/dir", entries), "p", entries);
88 for (File dir: new File[] { f, f.getAbsoluteFile() }) {
90 JavaFileObject fo = fm.getJavaFileObjects(new File(dir, e)).iterator().next();
91 test(fo, dir, e);
101 File dir = (l == StandardLocation.CLASS_PATH ? f : f.getAbsoluteFile());
102 char sep = (dir.isDirectory() ? File.separatorChar : '/');
105 test(fo, dir, b.replace('.', sep) + e);
113 void test(JavaFileObject fo, File dir, String p) {
115 String expect = dir.isDirectory() ? new File(dir, p).getPath() : (dir.getPath() + "(" + p + ")");
165 File dir = new File(name);
166 if (!dir.mkdirs())
167 throw new Exception("cannot create directories " + dir);
169 writeFile(new File(dir, e), e);
171 return dir;