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