code: private String[] parseParams(String line) {
          //JENKINS-24870 CommandLine.getExecutable tries to fix file separators, so if the first param contains slashes, it can cause problems
          //Adding some placeholder instead of executable
          CommandLine cmdLine = CommandLine.parse("executable_placeholder " + line);
          String[] parsedArgs = cmdLine.getArguments();
          String[] args = new String[parsedArgs.length];
          if(parsedArgs.length > 0) {
              System.arraycopy(parsedArgs, 0, args, 0, parsedArgs.length);
          }
          return args;
      }
docs: Parse parameters to be passed as arguments to the groovy binary