diff options
author | Sven Gothel <sgothel@jausoft.com> | 2019-04-03 01:00:29 +0200 |
---|---|---|
committer | Sven Gothel <sgothel@jausoft.com> | 2019-04-03 01:00:29 +0200 |
commit | 1157b913a068167062c853b4b525954b223a5509 (patch) | |
tree | 8cab1fcdc3d512a6c94c77692b9d7695f9739c9c /src/java/com/jogamp/common/util/cache/TempCacheReg.java | |
parent | ecb65c39a6902158ed824348a23dbbcb42a85f01 (diff) |
Bug 1367: Make TempFileCache & TempJarCache even if temp folder can't handle executables
Diffstat (limited to 'src/java/com/jogamp/common/util/cache/TempCacheReg.java')
-rw-r--r-- | src/java/com/jogamp/common/util/cache/TempCacheReg.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/java/com/jogamp/common/util/cache/TempCacheReg.java b/src/java/com/jogamp/common/util/cache/TempCacheReg.java index 47ef584..b7c275c 100644 --- a/src/java/com/jogamp/common/util/cache/TempCacheReg.java +++ b/src/java/com/jogamp/common/util/cache/TempCacheReg.java @@ -31,7 +31,11 @@ public class TempCacheReg { public static boolean isTempFileCacheUsed() { return null != System.getProperty(TempFileCache.tmpRootPropName); } - public static boolean isTempJarCacheUsed() { - return TempJarCache.isInitialized(); + /** + * @param forExecutables if {@code true}, method also tests whether {@link TempJarCache}'s underlying cache is suitable to load native libraries or launch executables + * @return true if {@link TempJarCache} has been properly initialized, ie. is in use. Otherwise returns false. + */ + public static boolean isTempJarCacheUsed(final boolean forExecutables) { + return TempJarCache.isInitialized(forExecutables); } } |