diff options
author | Sven Gothel <[email protected]> | 2019-03-20 16:58:10 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2019-03-20 16:58:10 +0100 |
commit | 8409512c12e88cfad06704cf0c6d3f196dd24163 (patch) | |
tree | d133d4a7e0bf49ddb5cb4065e8240e735ffbcb4e /src/java/com/jogamp/common | |
parent | d915f8209ddd4083daebc139b5cdf0295f637ef4 (diff) | |
parent | 3525af421e7b1e622599b8ca45728105aa1e6158 (diff) |
Resolve v2.3.1_winexe merge conflictsjavafx
Diffstat (limited to 'src/java/com/jogamp/common')
-rw-r--r-- | src/java/com/jogamp/common/util/IOUtil.java | 12 |
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 517c21c..342c557 100644 --- a/src/java/com/jogamp/common/util/IOUtil.java +++ b/src/java/com/jogamp/common/util/IOUtil.java @@ -83,6 +83,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() {} /** @@ -923,6 +929,12 @@ public class IOUtil { { final boolean debug = DEBUG_EXE || DEBUG; + 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"); |