(String... args)
| 112 | } |
| 113 | |
| 114 | private static String[] toCmdArray(String... args) { |
| 115 | List<String> cmd_array = new ArrayList<String>(); |
| 116 | for (String s : args) { |
| 117 | |
| 118 | cmd_array.add(s); |
| 119 | } |
| 120 | return cmd_array.toArray(new String[0]); |
| 121 | } |
| 122 | |
| 123 | public static byte[] executeCmd(String... command) throws Exception { |
| 124 | Process p = Runtime.getRuntime().exec(toCmdArray(command)); |
no test coverage detected