slawekjaranowski commented on code in PR #2117:
URL: https://github.com/apache/maven/pull/2117#discussion_r1966516389


##########
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnsh/builtin/BuiltinShellCommandRegistryFactory.java:
##########
@@ -130,53 +129,140 @@ public String name() {
             return "Builtin Maven Shell commands";
         }
 
-        private List<Completers.OptDesc> commandOptions(String command) {
+        private void executeCmnd(List<String> args) throws Exception {
+            ProcessBuilder builder = new ProcessBuilder();
+            List<String> processArgs = new ArrayList<>();
+            if (Os.IS_WINDOWS) {
+                processArgs.add("cmd.exe");
+                processArgs.add("/c");
+            } else {
+                processArgs.add("sh");
+                processArgs.add("-c");
+            }
+            processArgs.add(String.join(" ", args));

Review Comment:
   we should add each item as new argument  ... not a one arument with spaces 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to