I have a method like the following:
public void launch(String cmd, String [] args, String workingDir)
Inside this method I call ProcessBuilder.
How can I call ProcessBuilder including an arbitrary number of args included in my args parameter?
E.g., something like this:
ProcessBuilder pb = new ProcessBuilder(cmd, args);
I notice ProcessBuilder does have this contructor:
ProcessBuilder(List<String> command)
Maybe I could use that somehow.