You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2008/09/05 22:07:52 UTC

[jira] Resolved: (SMX4KNL-75) Modify GShell argument processing to execute multiple commands.

     [ https://issues.apache.org/activemq/browse/SMX4KNL-75?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet resolved SMX4KNL-75.
------------------------------------

         Assignee: Guillaume Nodet
    Fix Version/s: 1.0.0
       Resolution: Fixed

GShell syntax allows for multiple commands on the same line using the semicolumn.
However, it does not really work from the command line.  This is now fixed and one can run:
{code}
bin/servicemix osgi list \; osgi list -l
{code}
or
{code}
bin\servicemix.bat osgi list ; osgi list -l
{code}

Sending        gshell/gshell-core/src/main/java/org/apache/geronimo/gshell/spring/GShell.java
Transmitting file data .
Committed revision 692524.

> 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
>            Assignee: Guillaume Nodet
>             Fix For: 1.0.0
>
>         Attachments: smx4knl-75.txt
>
>
> 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.