Searched refs:tmpdir (Results 1 - 25 of 30) sorted by relevance

12

/openjdk7/jdk/test/java/io/File/
H A DCheckTempDir.java28 * @summary this tests that the temp dir variable, java.io.tmpdir is
40 String tmpdir = null;
41 if ((tmpdir = System.getProperty("java.io.tmpdir")) == null) {
42 throw new RuntimeException("java.io.tmpdir is not initialized");
44 System.out.println("checked tmpdir is not null: " + tmpdir);
H A DDeleteOnExit.java35 static String tmpdir = System.getProperty("java.io.tmpdir"); field in class:DeleteOnExit
38 static File file1 = new File(tmpdir + "deletedOnExit1");
39 static File file2 = new File(tmpdir + "deletedOnExit2");
40 static File file3 = new File(tmpdir + "deletedOnExit3");
43 static File dir = new File(tmpdir + "deletedOnExitDir");
/openjdk7/jdk/test/java/nio/file/Files/
H A DMisc.java55 static void testCreateDirectories(Path tmpdir) throws IOException { argument
57 createDirectories(tmpdir);
60 Path subdir = tmpdir.resolve("a");
70 Path file = createFile(tmpdir.resolve("x"));
84 static void testIsHidden(Path tmpdir) throws IOException { argument
85 assertTrue(!isHidden(tmpdir));
87 Path file = tmpdir.resolve(".foo");
108 static void testIsSameFile(Path tmpdir) throws IOException { argument
109 Path thisFile = tmpdir.resolve("thisFile");
110 Path thatFile = tmpdir
188 testFileTypeMethods(Path tmpdir) argument
248 testAccessMethods(Path tmpdir) argument
[all...]
H A DCopyAndMove.java969 Path tmpdir = createTempDirectory("blah");
971 if (TestUtil.supportsLinks(tmpdir)) {
972 Path link = createSymbolicLink(tmpdir.resolve("link"),
973 tmpdir.resolve("target"));
985 delete(tmpdir);
1001 Path tmpdir = createTempDirectory("blah");
1002 Path source = tmpdir.resolve("source");
1003 Path target = tmpdir.resolve("target");
1040 delete(tmpdir);
/openjdk7/jdk/test/java/util/zip/ZipFile/
H A DManyZipFiles.java68 File tmpdir = new File(
69 System.getProperty("java.io.tmpdir")
71 if (tmpdir.exists() && !tmpdir.isDirectory()) {
72 fail(tmpdir.getAbsolutePath()
76 if (!tmpdir.exists()) {
77 if (!tmpdir.mkdirs()) {
79 + tmpdir.getAbsolutePath() + " for test files");
82 } else if (!tmpdir.canWrite()) {
84 + tmpdir
[all...]
/openjdk7/jdk/src/share/classes/sun/jvmstat/perfdata/monitor/protocol/local/
H A DLocalVmManager.java48 private File tmpdir; field in class:LocalVmManager
81 tmpdir = new File(PerfDataFile.getTempDirectory());
92 tmpdir = new File(PerfDataFile.getTempDirectory(userName));
137 if (! tmpdir.isDirectory()) {
146 File[] dirs = tmpdir.listFiles(userFilter);
173 File[] files = tmpdir.listFiles(fileFilter);
186 File[] files = tmpdir.listFiles(tmpFileFilter);
H A DPerfDataFile.java263 * This method generally returns the value of the java.io.tmpdir
279 * the directory indicated in the java.io.tmpdir property. However,
292 * Solaris java.io.tmpdir property were set to /tmp by default
296 * Why is java.io.tmpdir on Solaris set to "/var/tmp/" when the
303 String tmpdir = System.getProperty("java.io.tmpdir");
305 if (tmpdir.compareTo("/var/tmp/") == 0) {
308 * java.io.tmpdir is set to "/var/tmp/" on Solaris and Linux,
311 * to java.io.tmpdir.
313 tmpdir
[all...]
/openjdk7/langtools/test/tools/javac/processing/filer/
H A DTestGetResource2.java63 File tmpdir = new File("testSingleSourceDir");
64 File srcdir = new File(tmpdir, "src");
65 File destdir = new File(tmpdir, "dest");
81 File tmpdir = new File("testCompositeSourcePath");
82 File srcdir = new File(tmpdir, "src");
83 File rsrcdir = new File(tmpdir, "rsrc");
84 File destdir = new File(tmpdir, "dest");
100 File tmpdir = new File("testMissingResource");
101 File srcdir = new File(tmpdir, "src");
102 File destdir = new File(tmpdir, "des
[all...]
/openjdk7/jdk/test/java/awt/FontClass/CreateFont/
H A DDeleteFont.sh50 ${TESTJAVA}/bin/java -Djava.io.tmpdir=${TESTCLASSES} DeleteFont
/openjdk7/jdk/src/share/sample/jmx/jmx-scandir/test/com/sun/jmx/examples/scandir/
H A DDirectoryScannerTest.java153 final String tmpdir = System.getProperty("java.io.tmpdir");
157 config.addDirectoryScanner("test",tmpdir,".*",0,0);
166 final File tmpFile = new File(tmpdir);
191 final String tmpdir = System.getProperty("java.io.tmpdir");
194 config.addDirectoryScanner("test1",tmpdir,".*",0,0);
195 config.addDirectoryScanner("test2",tmpdir,".*",0,0);
196 config.addDirectoryScanner("test3",tmpdir,".*",0,0);
263 bean.setRootDirectory(System.getProperty("java.io.tmpdir"));
[all...]
/openjdk7/jdk/test/sun/net/www/protocol/jar/
H A DB4957695.java96 String tmpdir = System.getProperty("java.io.tmpdir");
97 String[] list1 = listTmpFiles(tmpdir);
112 String[] list2 = listTmpFiles(tmpdir);
/openjdk7/jdk/src/solaris/classes/sun/tools/attach/
H A DBsdVirtualMachine.java40 // "tmpdir" is used as a global well-known location for the files
44 // This is intentionally not the same as java.io.tmpdir, since
47 private static final String tmpdir; field in class:BsdVirtualMachine
73 File f = new File(tmpdir, ".attach_pid" + pid);
255 File f = new File(tmpdir, fn);
301 tmpdir = getTempDir();
H A DSolarisVirtualMachine.java46 private static final String tmpdir = "/tmp"; field in class:SolarisVirtualMachine
197 String path = tmpdir + "/.java_pid" + pid;;
222 f = new File(tmpdir, fn);
H A DLinuxVirtualMachine.java45 private static final String tmpdir = "/tmp"; field in class:LinuxVirtualMachine
269 File f = new File(tmpdir, ".java_pid" + pid);
287 f = new File(tmpdir, fn);
/openjdk7/jdk/src/share/classes/java/nio/file/
H A DTempFileHelper.java49 private static final Path tmpdir = field in class:TempFileHelper
50 Paths.get(doPrivileged(new GetPropertyAction("java.io.tmpdir")));
92 dir = tmpdir;
142 if (dir == tmpdir && sm != null)
/openjdk7/jdk/test/sun/net/www/protocol/jar/jarbug/src/test/
H A DJarTest.java30 static String tmpdir = System.getProperty("java.io.tmpdir"); field in class:JarTest
93 File result = new File(tmpdir + File.separator + getClass().getName());
H A DTestBug4361044.java56 File testDir = new File(tmpdir + File.separator + getClass().getName());
H A DTestBug4523159.java58 File testDir = new File(tmpdir + File.separator + getClass().getName());
/openjdk7/jdk/test/javax/management/remote/mandatory/loading/
H A DRMIDownloadTest.java138 String tmpdir = System.getProperty("java.io.tmpdir");
139 String classfile = tmpdir + File.separator + "Zooby.class";
170 // This should not work; if it does it probably means java.io.tmpdir
/openjdk7/jdk/src/windows/native/java/lang/
H A Djava_props_md.c334 WCHAR tmpdir[MAX_PATH + 1]; local
336 GetTempPathW(MAX_PATH + 1, tmpdir);
337 sprops.tmp_dir = _wcsdup(tmpdir);
/openjdk7/jdk/src/share/classes/java/io/
H A DFile.java1871 private static final File tmpdir = new File(AccessController field in class:File.TempDirectory
1872 .doPrivileged(new GetPropertyAction("java.io.tmpdir")));
1874 return tmpdir;
1932 * <code>java.io.tmpdir</code>. On UNIX systems the default value of this
1974 File tmpdir = (directory != null) ? directory
1979 f = TempDirectory.generateFile(prefix, suffix, tmpdir);
/openjdk7/langtools/make/
H A DMakefile165 ANT_OPTS = ANT_OPTS=-Djava.io.tmpdir='$(ANT_TMPDIR)'
/openjdk7/hotspot/src/os/bsd/vm/
H A DperfMemory_bsd.cpp154 const char* tmpdir = os::get_temp_directory(); local
156 size_t nbytes = strlen(tmpdir) + strlen(perfdir) + strlen(user) + 3;
160 snprintf(dirname, nbytes, "%s/%s_%s", tmpdir, perfdir, user);
650 warning("Insufficient space for shared memory file:\n %s\nTry using the -Djava.io.tmpdir= option to select an alternate temp location.\n", filename);
/openjdk7/hotspot/src/os/linux/vm/
H A DperfMemory_linux.cpp154 const char* tmpdir = os::get_temp_directory(); local
156 size_t nbytes = strlen(tmpdir) + strlen(perfdir) + strlen(user) + 3;
160 snprintf(dirname, nbytes, "%s/%s_%s", tmpdir, perfdir, user);
650 warning("Insufficient space for shared memory file:\n %s\nTry using the -Djava.io.tmpdir= option to select an alternate temp location.\n", filename);
/openjdk7/hotspot/src/os/solaris/vm/
H A DperfMemory_solaris.cpp156 const char* tmpdir = os::get_temp_directory(); local
158 size_t nbytes = strlen(tmpdir) + strlen(perfdir) + strlen(user) + 3;
162 snprintf(dirname, nbytes, "%s/%s_%s", tmpdir, perfdir, user);

Completed in 95 milliseconds

12