You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2010/02/12 17:47:28 UTC

[jira] Created: (FELIX-2076) The addcommand command does not work

The addcommand command does not work
------------------------------------

                 Key: FELIX-2076
                 URL: https://issues.apache.org/jira/browse/FELIX-2076
             Project: Felix
          Issue Type: Bug
          Components: Karaf
            Reporter: Guillaume Nodet


We need to create a new command or make sure the existing addcommand work as described in http://felix.apache.org/site/rfc-147-overview.html

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


[jira] Closed: (FELIX-2076) The addcommand command does not work

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2076?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet closed FELIX-2076.
----------------------------------

    Resolution: Cannot Reproduce
      Assignee: Guillaume Nodet

My bad.
I was trying to use
   addcommand url (loadclass java.net.URL)
but the URL class does not have any static methods (I was thinking about java.net.URI instead).
The addcommand works fine, so I'm closing this issue.

> The addcommand command does not work
> ------------------------------------
>
>                 Key: FELIX-2076
>                 URL: https://issues.apache.org/jira/browse/FELIX-2076
>             Project: Felix
>          Issue Type: Bug
>          Components: Karaf
>            Reporter: Guillaume Nodet
>            Assignee: Guillaume Nodet
>
> We need to create a new command or make sure the existing addcommand work as described in http://felix.apache.org/site/rfc-147-overview.html

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


[jira] Commented: (FELIX-2076) The addcommand command does not work

Posted by "Derek Baum (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833630#action_12833630 ] 

Derek Baum commented on FELIX-2076:
-----------------------------------

addcommand seems to work fine to me, in both Karaf and Gogo:

[derek@denzil apache-felix-karaf-1.2.0]$ bin/karaf 
        __ __                  ____      
       / //_/____ __________ _/ __/      
      / ,<  / __ `/ ___/ __ `/ /_        
     / /| |/ /_/ / /  / /_/ / __/        
    /_/ |_|\__,_/_/   \__,_/_/         

  Apache Felix Karaf (1.2.0)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or 'osgi:shutdown' to shutdown Karaf.
 
karaf@root> 
karaf@root> 
karaf@root> addcommand
Cannot coerce addcommand[] to any of [(String, Object, String), (String, Object), (String, Object, Class)]
karaf@root> 
karaf@root> 
karaf@root> getenv
Command not found:  *:getenv
karaf@root> addcommand system (loadclass java.lang.System)
karaf@root> getenv
TERM                xterm-color
LC_COLLATE          en_GB.utf-8
ANT_OPTS            -Xmx128m -XX:MaxPermSize=128m
JAVA_MAIN_CLASS_33904org.apache.felix.karaf.main.Bootstrap
SHLVL               1
TERM_PROGRAM        iTerm.app


> The addcommand command does not work
> ------------------------------------
>
>                 Key: FELIX-2076
>                 URL: https://issues.apache.org/jira/browse/FELIX-2076
>             Project: Felix
>          Issue Type: Bug
>          Components: Karaf
>            Reporter: Guillaume Nodet
>
> We need to create a new command or make sure the existing addcommand work as described in http://felix.apache.org/site/rfc-147-overview.html

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