// Starts the process.
if(autoDetectEncoding) {
if(listener == null)
listener = new ShellEncodingListener();
else {
ProcessListenerList listeners;
listeners = new ProcessListenerList();
listeners.add(listener);
listeners.add(new ShellEncodingListener());
listener = listeners;
}
}
return (encoding == null) ? ProcessRunner.execute(commandTokens, currentFolder, listener) : ProcessRunner.execute(commandTokens, currentFolder, listener, encoding);
}