Prepends any arguments necessary to run a command.
(String cmd)
| 199 | |
| 200 | /** Prepends any arguments necessary to run a command. */ |
| 201 | private static List<String> getPlatformCmds(String cmd) { |
| 202 | if (OS.getNative().isWindows()) { |
| 203 | return Arrays.asList("cmd", "/c", cmd); |
| 204 | } else { |
| 205 | return Arrays.asList("/bin/sh", "-c", cmd); |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | static class InputStreamCollector extends Thread { |
| 210 | private final InputStream iStream; |