aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/com/jogamp/common')
-rw-r--r--src/java/com/jogamp/common/util/IOUtil.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/java/com/jogamp/common/util/IOUtil.java b/src/java/com/jogamp/common/util/IOUtil.java
index 88542c4..b9a0a33 100644
--- a/src/java/com/jogamp/common/util/IOUtil.java
+++ b/src/java/com/jogamp/common/util/IOUtil.java
@@ -69,6 +69,12 @@ public class IOUtil {
/** Subdirectory within platform's temporary root directory where all JogAmp related temp files are being stored: {@code jogamp} */
public static final String tmpSubDir = "jogamp";
+ private static final String _TestTempDirExec = "jogamp.gluegen.TestTempDirExec";
+ private static final boolean testTempDirExec;
+ static {
+ testTempDirExec = PropertyAccess.getBooleanProperty(_TestTempDirExec, true, true);
+ }
+
private IOUtil() {}
/**
@@ -865,6 +871,12 @@ public class IOUtil {
public static boolean testDirExec(final File dir)
throws SecurityException
{
+ if( !testTempDirExec ) {
+ if(DEBUG) {
+ System.err.println("IOUtil.testDirExec: <"+dir.getAbsolutePath()+">: Disabled "+_TestTempDirExec);
+ }
+ return false;
+ }
if (!testFile(dir, true, true)) {
if(DEBUG) {
System.err.println("IOUtil.testDirExec: <"+dir.getAbsolutePath()+">: Not writeable dir");