]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/tasks/SystemCall.java
Improve system calls
[gpl/argeo-slc.git] / runtime / org.argeo.slc.core / src / main / java / org / argeo / slc / core / execution / tasks / SystemCall.java
index a873b4dca15e6e6d26371ed04760394f163b5386..49ccc9c57f3d22f7ecfc891519bfea7343f0a40b 100644 (file)
@@ -176,8 +176,8 @@ public class SystemCall implements Runnable {
 
                // Execution directory
                File dir = new File(getExecDirToUse());
-               if (!dir.exists())
-                       dir.mkdirs();
+               // if (!dir.exists())
+               // dir.mkdirs();
 
                // Watchdog to check for lost processes
                Executor executorToUse;
@@ -422,9 +422,11 @@ public class SystemCall implements Runnable {
                try {
                        File dir = null;
                        if (execDir != null) {
+                               return execDir;
                                // Replace '/' by local file separator, for portability
-                               execDir.replace('/', File.separatorChar);
-                               dir = new File(execDir).getCanonicalFile();
+                               // execDir.replace('/', File.separatorChar);
+                               // dir = new File(execDir).getCanonicalFile();
+                               // dir = execDir.;
                        }
 
                        if (dir == null)