Modify GShell argument processing to execute multiple commands.
---------------------------------------------------------------

                 Key: SMX4KNL-75
                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-75
             Project: ServiceMix Kernel
          Issue Type: Improvement
         Environment: All
            Reporter: Jamie Goodyear


Modify GShell argument processing to execute multiple commands.

modify file: 

trunk/gshell/gshell-core/src/main/java/org/apache/geronimo/gshell/spring/GShell.java:

replace: 

Object value = shell.execute((Object[]) args);

with: 

Object value = null;
for (String arg : args) {
    value = shell.execute(arg);
}

 Details:

 This modification will allow the kernel to process multiple commands issued on 
the command line as follows:

 bin>./servicemix "osgi list" "osgi list" "exit"

 This will print out the list of installed bundles twice, then exit.

 Note: usage of "utils sleep 10000" will stop rendering of text to stdout.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to