MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / toCmdArray

Method toCmdArray

src/main/java/core/packetproxy/common/Utils.java:114–121  ·  view source on GitHub ↗
(String... args)

Source from the content-addressed store, hash-verified

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));

Callers 1

executeCmdMethod · 0.95

Calls 2

addMethod · 0.45
toArrayMethod · 0.45

Tested by

no test coverage detected