Commits

Michael Heemskerk committed 9746cbb

CRUC-4793: Fixed ExternalProcess for windows. Forgot to set the working directory appropriately

Comments (0)

Files changed (2)

processutils/src/main/java/com/atlassian/utils/process/ExternalProcess.java

         cmdArray = i18n;
 
         ProcessBuilder pb = new ProcessBuilder(cmdArray);
+        pb.directory(workingDir);
         Map<String, String> env = pb.environment();
         env.putAll(newEnv);
         return pb.start();

processutils/src/test/java/com/atlassian/utils/process/CallEcho.java

             // to process the results. Otherwise, encoding errors will occur.
             ExternalProcess process = new ExternalProcessBuilder()
             	.command(echoCmd)
-            	.timeout(250)
+            	.timeout(2000)
             	.handlers(new LineOutputHandler(System.getProperty("file.encoding")) {
                 @Override
                 protected void processLine(int lineNum, String line) {