aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/util/IOUtil.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/com/jogamp/common/util/IOUtil.java')
-rw-r--r--src/java/com/jogamp/common/util/IOUtil.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/java/com/jogamp/common/util/IOUtil.java b/src/java/com/jogamp/common/util/IOUtil.java
index e9bf050..b4fb745 100644
--- a/src/java/com/jogamp/common/util/IOUtil.java
+++ b/src/java/com/jogamp/common/util/IOUtil.java
@@ -800,6 +800,14 @@ public class IOUtil {
return "#!/bin/true"+PlatformPropsImpl.NEWLINE;
}
}
+ private static String getExeNativePath(final String canonicalPath) {
+ switch(PlatformPropsImpl.OS_TYPE) {
+ case WINDOWS:
+ return "\""+canonicalPath+"\"";
+ default:
+ return canonicalPath;
+ }
+ }
private static String[] getExeTestCommandArgs(final String scriptFile) {
switch(PlatformPropsImpl.OS_TYPE) {
case WINDOWS:
@@ -1045,7 +1053,7 @@ public class IOUtil {
existingExe = false;
fillExeTestFile(exeTestFile);
}
- exeNativePath = "\""+exeTestFile.getCanonicalPath()+"\"";
+ exeNativePath = getExeNativePath( exeTestFile.getCanonicalPath() );
} catch (final SecurityException se) {
throw se; // fwd Security exception
} catch (final IOException e) {