karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Dumont <ddum...@apache.org>
Subject Re: osgi CommandProvider
Date Mon, 22 Oct 2012 15:54:52 GMT
Thanks.   It is not listed by packages:exports

However, the classes are included in the osgix.x.x.jar file provided by
exquinox.
What should I add to the files you mentioned in order to force the export?

On Mon, Oct 22, 2012 at 10:01 AM, Jean-Baptiste Onofré <jb@nanthrax.net>wrote:

> Hi,
>
> take a look in package:exports.
>
> If the package is not exported, and Equinox provide it, you have to update
> the jre.properties and system.properties to "expose" it.
>
> Regards
> JB
>
> On 10/22/2012 03:56 PM, Dan Dumont wrote:
>
>> No, I think you misunderstood me.
>> I already have a bundle that implements
>> org.eclipse.osgi.framework.**console.CommandProvider
>> In eclipse, I'm able to access the equinox console and issue commands,
>> this already works.
>>
>> I'm trying the bundle out in karaf running with equinox and the command
>> does not seem to be bridged into karaf's console.  Is there a way to
>> access the equinox console impl?
>>
>> On Mon, Oct 22, 2012 at 9:32 AM, dealbitte <anand.bochum@gmail.com
>> <mailto:anand.bochum@gmail.com**>> wrote:
>>
>>     Hi,
>>
>>     did you try this.
>>     http://karaf.apache.org/**manual/latest-2.3.x/**
>> developers-guide/archetypes.**html<http://karaf.apache.org/manual/latest-2.3.x/developers-guide/archetypes.html>
>>
>>     this worked for me without any problem.
>>
>>     I have a command called 'createmsg' that I can execute from the
>>     console. The
>>     following class is an example implementation
>>
>>     *******
>>     @Command(scope = "osgi", name = "createmsg", description = "print a
>>     message")
>>     public class createmsg extends OsgiCommandSupport {
>>
>>          protected Object doExecute() throws Exception {
>>               System.out.println("Executing command createmsg");
>>               return null;
>>          }
>>
>>     *******
>>     regards
>>
>>
>>
>>
>>
>>     --
>>     View this message in context:
>>     http://karaf.922171.n3.nabble.**com/osgi-CommandProvider-**
>> tp4026523p4026525.html<http://karaf.922171.n3.nabble.com/osgi-CommandProvider-tp4026523p4026525.html>
>>     Sent from the Karaf - User mailing list archive at Nabble.com.
>>
>>
>>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

Mime
View raw message