hotspot/src/os/windows/vm/os_windows.cpp
changeset 5237 aab592fd4f44
parent 5085 4f0c435f8c3c
child 5403 6b0dd9c75dde
--- a/hotspot/src/os/windows/vm/os_windows.cpp	Fri Mar 26 11:10:26 2010 -0400
+++ b/hotspot/src/os/windows/vm/os_windows.cpp	Wed Mar 31 16:51:18 2010 -0700
@@ -998,15 +998,16 @@
 
 const char* os::dll_file_extension() { return ".dll"; }
 
-const char * os::get_temp_directory()
-{
-    static char path_buf[MAX_PATH];
-    if (GetTempPath(MAX_PATH, path_buf)>0)
-      return path_buf;
-    else{
-      path_buf[0]='\0';
-      return path_buf;
-    }
+const char* os::get_temp_directory() {
+  const char *prop = Arguments::get_property("java.io.tmpdir");
+  if (prop != 0) return prop;
+  static char path_buf[MAX_PATH];
+  if (GetTempPath(MAX_PATH, path_buf)>0)
+    return path_buf;
+  else{
+    path_buf[0]='\0';
+    return path_buf;
+  }
 }
 
 static bool file_exists(const char* filename) {