Searched defs:dir (Results 26 - 50 of 235) sorted by relevance

12345678910

/openjdk7/jdk/src/share/classes/java/nio/file/
H A DFileVisitor.java50 * public FileVisitResult postVisitDirectory(Path dir, IOException e)
54 * Files.delete(dir);
73 * public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs)
76 * Path targetdir = target.resolve(source.relativize(dir));
78 * Files.copy(dir, targetdir);
109 * @param dir
119 FileVisitResult preVisitDirectory(T dir, BasicFileAttributes attrs) argument
163 * @param dir
175 FileVisitResult postVisitDirectory(T dir, IOException exc) argument
H A DSimpleFileVisitor.java57 public FileVisitResult preVisitDirectory(T dir, BasicFileAttributes attrs) argument
60 Objects.requireNonNull(dir);
104 public FileVisitResult postVisitDirectory(T dir, IOException exc) argument
107 Objects.requireNonNull(dir);
/openjdk7/jdk/src/share/classes/com/sun/jndi/toolkit/dir/
H A DContainmentFilter.java35 package com.sun.jndi.toolkit.dir;
H A DDirSearch.java26 package com.sun.jndi.toolkit.dir;
/openjdk7/hotspot/src/share/tools/ProjectCreator/
H A DFileTreeCreatorVC10.java95 // TODO remove attrs, if path is matched in this dir, then it is too in every subdir.
126 public FileVisitResult postVisitDirectory(Path dir, IOException exc) { argument
H A DFileTreeCreatorVC7.java140 public FileVisitResult postVisitDirectory(Path dir, IOException exc) { argument
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/tools/internal/ws/processor/util/
H A DDirectoryUtil.java64 // Default package, so use root as output dir...
70 String workingDirPath = System.getProperty("user.dir");
99 private static void ensureDirectory(File dir) argument
102 if (!dir.exists()) {
103 dir.mkdirs();
104 if (!dir.exists()) {
105 throw new GeneratorException("generator.cannot.create.dir",
106 dir.getAbsolutePath());
/openjdk7/jdk/test/demo/zipfs/
H A DBasic.java122 public FileVisitResult preVisitDirectory(Path dir, argument
125 if (dir.getFileName() != null) {
127 System.out.println(dir.getFileName() + "/");
146 public FileVisitResult postVisitDirectory(Path dir, IOException exc) argument
150 super.postVisitDirectory(dir, exc);
151 if (dir.getFileName() != null)
/openjdk7/jdk/test/java/io/File/
H A DDeleteOnExit.java43 static File dir = new File(tmpdir + "deletedOnExitDir"); field in class:DeleteOnExit
44 static File file4 = new File(dir + File.separator + "deletedOnExit4");
45 static File file5 = new File(dir + File.separator + "dxnsdnguidfgejngognrogn");
46 static File file6 = new File(dir + File.separator + "mmmmmmsdmfgmdsmfgmdsfgm");
47 static File file7 = new File(dir + File.separator + "12345566777");
55 dir.exists() || file4.exists() || file5.exists() ||
61 System.out.println(dir + ", exists = " + dir.exists());
67 // cleanup undeleted dir if test fails
68 dir
[all...]
H A DIsHidden.java35 private static String dir = System.getProperty("test.dir", "."); field in class:IsHidden
55 File f = new File(dir, "test");
74 ck(dir + "/IsHidden.java", false);
75 ck(dir + "/.", true);
/openjdk7/jdk/test/java/nio/file/DirectoryStream/
H A DSecureDS.java43 Path dir = TestUtil.createTemporaryDirectory();
45 DirectoryStream<Path> stream = newDirectoryStream(dir);
52 supportsLinks = TestUtil.supportsLinks(dir);
55 doBasicTests(dir);
56 doMoveTests(dir);
57 miscTests(dir);
60 TestUtil.removeAll(dir);
65 static void doBasicTests(Path dir) throws IOException { argument
66 Path dir1 = createDirectory(dir.resolve("dir1"));
67 Path dir2 = dir
176 doMoveTests(Path dir) argument
240 miscTests(Path dir) argument
[all...]
/openjdk7/jdk/test/java/nio/file/FileStore/
H A DBasic.java41 Path dir = TestUtil.createTemporaryDirectory();
43 doTests(dir);
45 TestUtil.removeAll(dir);
60 static void doTests(Path dir) throws IOException { argument
64 assertTrue(!Files.getFileStore(dir).isReadOnly());
69 Path file1 = Files.createFile(dir.resolve("foo"));
70 Path file2 = Files.createFile(dir.resolve("bar"));
/openjdk7/jdk/test/java/nio/file/Files/
H A DTemporaryFiles.java38 static void checkInDirectory(Path file, Path dir) { argument
39 if (dir == null)
40 dir = Paths.get(System.getProperty("java.io.tmpdir"));
41 if (!file.getParent().equals(dir))
45 static void testTempFile(String prefix, String suffix, Path dir) argument
48 Path file = (dir == null) ?
50 Files.createTempFile(dir, prefix, suffix);
62 checkInDirectory(file, dir);
88 static void testTempDirectory(String prefix, Path dir) throws IOException { argument
89 Path subdir = (dir
[all...]
/openjdk7/jdk/test/java/nio/file/Files/walkFileTree/
H A DWalkWithSecurity.java43 String here = System.getProperty("user.dir");
47 Path dir = Paths.get(testSrc);
50 if (Files.isSameFile(Paths.get(here), dir))
51 throw new RuntimeException("Working directory cannot be " + dir);
52 try (DirectoryStream<Path> stream = Files.newDirectoryStream(dir)) {
59 dir.resolve(policyFile).toString());
66 Files.walkFileTree(dir, visitor);
116 public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) { argument
117 System.out.println(dir);
/openjdk7/jdk/test/java/nio/file/Path/
H A DMisc.java40 Path dir = TestUtil.createTemporaryDirectory();
42 supportsLinks = TestUtil.supportsLinks(dir);
48 testToFile(dir);
51 testToRealPath(dir);
55 TestUtil.removeAll(dir);
86 static void testToFile(Path dir) throws IOException { argument
87 File d = dir.toFile();
88 assertTrue(d.toString().equals(dir.toString()));
89 assertTrue(d.toPath().equals(dir));
95 static void testToRealPath(Path dir) throw argument
[all...]
/openjdk7/jdk/test/java/nio/file/WatchService/
H A DLotsOfEvents.java43 Path dir = TestUtil.createTemporaryDirectory();
45 testOverflowEvent(dir);
46 testModifyEventsQueuing(dir);
48 TestUtil.removeAll(dir);
55 static void testOverflowEvent(Path dir) argument
58 try (WatchService watcher = dir.getFileSystem().newWatchService()) {
59 dir.register(watcher, ENTRY_CREATE, ENTRY_DELETE);
65 files[i] = Files.createFile(dir.resolve("foo" + i));
132 static void testModifyEventsQueuing(Path dir) argument
139 entries[i] = new DirectoryEntry(dir
[all...]
/openjdk7/jdk/test/java/nio/file/attribute/AclFileAttributeView/
H A DBasic.java48 static void testReadWrite(Path dir) throws IOException { argument
49 Path file = dir.resolve("foo");
117 static void testCreateFile(Path dir) throws IOException { argument
118 UserPrincipal user = Files.getOwner(dir);
123 Path file = dir.resolve("gus");
137 Path subdir = dir.resolve("stuff");
155 Path dir = Paths.get("./work" + new Random().nextInt());
156 Files.createDirectory(dir);
158 if (!Files.getFileStore(dir).supportsFileAttributeView("acl")) {
162 testReadWrite(dir);
[all...]
/openjdk7/jdk/test/java/nio/file/attribute/BasicFileAttributeView/
H A DBasic.java43 static void checkAttributesOfDirectory(Path dir) argument
46 BasicFileAttributes attrs = Files.readAttributes(dir, BasicFileAttributes.class);
53 File f = new File(dir.toString());
58 static void checkAttributesOfFile(Path dir, Path file) argument
77 BasicFileAttributes dirAttrs = Files.readAttributes(dir, BasicFileAttributes.class);
106 static void attributeReadWriteTests(Path dir) argument
110 Path file = dir.resolve("foo");
116 checkAttributesOfDirectory(dir);
117 checkAttributesOfFile(dir, file);
120 Path link = dir
[all...]
/openjdk7/jdk/test/java/nio/file/attribute/DosFileAttributeView/
H A DBasic.java74 static void readWriteTests(Path dir) throws IOException { argument
77 Path file = Files.createFile(dir.resolve("foo"));
82 if (!TestUtil.supportsLinks(dir))
85 Path link = dir.resolve("link");
140 Path dir = TestUtil.createTemporaryDirectory();
144 if (!Files.getFileStore(dir).supportsFileAttributeView("dos")) {
148 readWriteTests(dir);
150 TestUtil.removeAll(dir);
/openjdk7/jdk/test/java/nio/file/attribute/PosixFileAttributeView/
H A DBasic.java124 static void permissionTests(Path dir) argument
130 Path file = dir.resolve("foo");
172 if (TestUtil.supportsLinks(dir)) {
173 Path link = dir.resolve("link");
196 static void createTests(Path dir) argument
201 Path file = dir.resolve("foo");
232 static void ownerTests(Path dir) argument
237 Path file = dir.resolve("gus");
268 static void lookupPrincipalTests(Path dir) argument
273 UserPrincipalLookupService lookupService = dir
322 exceptionsTests(Path dir) argument
[all...]
/openjdk7/langtools/test/tools/javac/6917288/
H A DGraphicalInstallerTest.java82 void check(File dir, String... paths) { argument
83 Set<String> found = new TreeSet<String>(Arrays.asList(dir.list()));
/openjdk7/jdk/src/share/native/sun/font/layout/
H A DStateTableProcessor2.h67 le_int32 dir; member in class:StateTableProcessor2
/openjdk7/jdk/test/javax/crypto/sanity/
H A DCheckManifestForRelease.java80 static private String formatURL(String dir, String file) { argument
81 return "jar:file:///" + dir + "/" + file + "!/";
93 static private void checkManifest(String dir, String file) argument
98 String url = formatURL(dir, file);
/openjdk7/jdk/test/javax/swing/JFileChooser/6713352/
H A Dbug6713352.java87 public File[] getFiles(File dir, boolean useFileHiding) { argument
93 result = super.getFiles(dir, useFileHiding);
/openjdk7/jdk/src/share/classes/sun/misc/
H A DMetaIndex.java153 public static synchronized void registerDirectory(File dir) { argument
163 File indexFile = new File(dir, "meta-index");
173 /* Convert dir into canonical form. */
174 dir = dir.getCanonicalFile();
191 map.put(new File(dir, curJarName),
216 map.put(new File(dir, curJarName),

Completed in 125 milliseconds

12345678910