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

Derek Baum resolved FELIX-1671.
-------------------------------

    Resolution: Fixed

added felix command adaptor to gogo.

To use it, remove the shell-tui bundle and add the gogo runtime and console 
bundles to the default distribution:

$ cd felix-framework-2.0.0

$ ls bundle/
org.apache.felix.bundlerepository-1.4.1.jar
org.apache.felix.gogo.console-0.3.0-SNAPSHOT.jar
org.apache.felix.gogo.runtime-0.3.0-SNAPSHOT.jar
org.apache.felix.shell-1.4.0.jar

$ java -jar bin/felix.jar 

Welcome to Felix
================

$ ps
START LEVEL 1
   ID   State         Level  Name
[   0] [Active     ] [    0] System Bundle (2.0.0)
[   1] [Active     ] [    1] Apache Felix Bundle Repository (1.4.1)
[   2] [Active     ] [    1] Apache Felix Gogo Shell Console (0.3.0.SNAPSHOT)
[   3] [Active     ] [    1] Apache Felix Gogo Shell Runtime (0.3.0.SNAPSHOT)
[   4] [Active     ] [    1] Apache Felix Shell Service (1.4.0)

$ help
bundlelevel
cd
find
headers
help
inspect
install
log
obr
ps
refresh
resolve
shutdown
start
startlevel
stop
uninstall
update
version

Use 'help <command-name>' for more information.


# Note: gogo can now be used to provide the get/set system properties command 
that was requested in a recent Jira:

$ addcommand system (loadClass java.lang.System)

$ system:properties | grep java  
java.version        1.5.0_19
java.class.path     bin/felix.jar
java.awt.graphicsenvapple.awt.CGraphicsEnvironment
java.specification.vendorSun Microsystems Inc
...

$ system:setproperty gogo go
$ system:getproperty gogo
go

$ shutdown


> [gogo] provide adaptor for existing felix commands
> --------------------------------------------------
>
>                 Key: FELIX-1671
>                 URL: https://issues.apache.org/jira/browse/FELIX-1671
>             Project: Felix
>          Issue Type: Improvement
>    Affects Versions: gogo-0.2.0
>            Reporter: Derek Baum
>            Assignee: Derek Baum
>            Priority: Minor
>             Fix For: gogo-0.4.0
>
>
> gogo should provide a command adaptor for existing felix commands, so for 
> example, if the existing felix-shell bundle is installed, familiar commands 
> such as 'ps' should be available in the felix: scope.

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