Re: [osgi-dev] Shell

2016-12-09 Thread Neil Bartlett
This is tricky. You can’t have a requirement that is conditional upon the platform. You can have multiple resources that provide a capability, where each resource depends on a specific platform. We may need to follow a strategy similar to SWT, i.e. Gogo depends on some kind of “JLine native”

Re: [osgi-dev] Shell

2016-12-09 Thread Guillaume Nodet
If you know how to express a conditional package import, I'd be happy to add it... Guillaume 2016-12-09 16:11 GMT+01:00 Tim Ward : > To me that sounds like the bundle metadata needs enhancing. Ideally there > would be a way to make sure the Bndtools resolver knew it had to

Re: [osgi-dev] Shell

2016-12-09 Thread Tim Ward
To me that sounds like the bundle metadata needs enhancing. Ideally there would be a way to make sure the Bndtools resolver knew it had to add one of those bundles when on Windows! Tim Sent from my iPhone > On 9 Dec 2016, at 06:48, Guillaume Nodet wrote: > > On

Re: [osgi-dev] Shell

2016-12-09 Thread Guillaume Nodet
On windows, you need an additional bundle, either jansi or jna. With jline 3.0.2, this is not a strong requirement anymore (see [3] ), though the windows terminal is very limited without any of those additional bundles. Guillaume [1] http://repo1.maven.org/maven2/org/fusesource/jansi/jansi/1.14/

Re: [osgi-dev] Shell

2016-12-09 Thread Peter Kriens
On Winows 7 I think: > Exception in thread "Gogo shell" java.lang.NoClassDefFoundError: > org/fusesource/jansi/WindowsAnsiOutputStream > at > org.jline.terminal.TerminalBuilder.doBuild(TerminalBuilder.java:146) > at >

Re: [osgi-dev] Shell

2016-12-09 Thread Guillaume Nodet
Do you have some pointers ? I already fixed and released a bunch of issues in jline (latest of 3.0.x branch is 3.0.3), but if there are more, i'd be happy to look at them, whether you use it or not... 2016-12-09 13:41 GMT+01:00 Peter Kriens : > I’ve reverted the

[osgi-dev] Shell

2016-12-09 Thread Peter Kriens
I’ve reverted the osgi.enroute.gogo.shell.provider back to the good old org.apache.felix.gogo.shell bundle. It looks like the JLine support was not tested on windows and there are too many complaints. I tried the new Apache Felix shell with JLine but there I got a similar error reported. Since

Re: [osgi-dev] Strange issue with enRoute and Aries SPI Fly.

2016-12-09 Thread Peter Kriens
In my experience it would first help to look at the library. In my experience most libraries provide a simple registration process in addition to the automatic discovery. A trivial component using a BundleTracker can then handle this specific case. I’ve seen so many cases where people spend a