public LocalProcessExecutor( String caller, String command, String... commandArguments ) { this.caller = caller; this.commandDescription = command; this.commandTokens = new ArrayList<String>(); if (commandArguments == null || commandArguments.length == 0) { this.commandTokens.addAll(Arrays.asList(StringUtils.parseCommandLineArguments(command))); } else { this.commandTokens.add(command); for (String commandArgument : commandArguments) { this.commandTokens.add(commandArgument); this.commandDescription = this.commandDescription + " " + commandArgument; } } this.processBuilder = new ProcessBuilder(this.commandTokens); }