1. David Black
  2. atlassian-processutils


Michael Heemskerk [on leave]  committed 9746cbb

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

  • Participants
  • Parent commits f1a6009
  • Branches default

Comments (0)

Files changed (2)

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

View file
  • Ignore whitespace
         cmdArray = i18n;
         ProcessBuilder pb = new ProcessBuilder(cmdArray);
+        pb.directory(workingDir);
         Map<String, String> env = pb.environment();
         return pb.start();

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

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