summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/util/cache
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-09-30 14:47:05 +0200
committerSven Gothel <[email protected]>2011-09-30 14:47:05 +0200
commit16bae378d3ff39d624cab44712c47b099c491934 (patch)
treee612a9f5795156b124a1a38c9277b2a4c4ae686a /src/java/com/jogamp/common/util/cache
parent3b52b7adafeda64730fb0070ab16655aa706b254 (diff)
IOUtil: Generalize w/ getTempRoot()
Diffstat (limited to 'src/java/com/jogamp/common/util/cache')
-rw-r--r--src/java/com/jogamp/common/util/cache/TempFileCache.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/java/com/jogamp/common/util/cache/TempFileCache.java b/src/java/com/jogamp/common/util/cache/TempFileCache.java
index a4cb2f4..9c2556d 100644
--- a/src/java/com/jogamp/common/util/cache/TempFileCache.java
+++ b/src/java/com/jogamp/common/util/cache/TempFileCache.java
@@ -34,6 +34,8 @@ import java.io.IOException;
import java.nio.channels.FileChannel;
import java.nio.channels.FileLock;
+import com.jogamp.common.util.IOUtil;
+
import jogamp.common.Debug;
public class TempFileCache {
@@ -141,10 +143,8 @@ public class TempFileCache {
}
synchronized (System.out) {
-
// Get the name of the tmpbase directory.
- String tmpBaseName = System.getProperty("java.io.tmpdir") + File.separator + tmpDirPrefix ;
- tmpBaseDir = new File(tmpBaseName);
+ tmpBaseDir = new File(IOUtil.getTempRoot(), tmpDirPrefix);
tmpRootPropValue = System.getProperty(tmpRootPropName);