Commits

James Dumay  committed 528ba16

The CALL command will launch a new batch file context along with any specified arguments. Needed for compatibility with Bamboos old Command API.

  • Participants
  • Parent commits 28690f6

Comments (0)

Files changed (1)

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

                 }
             }
         }
-        int extraArgs = 3;
+        int extraArgs = 4;
         String[] i18n = new String[cmdArray.length + extraArgs];
         i18n[0] = "cmd";
         i18n[1] = "/A"; // use ANSI encoding 
         i18n[2] = "/C";
+        i18n[3] = "call";
         i18n[extraArgs] = cmdArray[0];
         for (int counter = 1; counter < cmdArray.length; counter++) {
             String envName = "JENV_" + counter;