|
|
|
|
Re: SLF4j Version 1.6.0 [message #646214 is a reply to message #645503] |
Wed, 22 December 2010 17:16 |
|
I think there's a valid reason why Orbit's SLF4J is like that.
SLF4J API is "useless" when only itself is installed by p2 (in an Eclipse installation), therefore it requires another bundle (the implementation) to be installed.
In your case, I would suggest using the original SLF4J API bundle from SLF4J, not from Orbit.
You could also try marking your Import-Package of slf4j API as optional.
I guess this is probably a bug, though I'm not sure what is the best way due to SLF4J architecture. Perhaps someone from SLF4J has a better idea how it should be done.
|
|
|
Re: SLF4j Version 1.6.0 [message #646481 is a reply to message #645503] |
Fri, 24 December 2010 19:16 |
|
Hi,
Am 17.12.2010 15:18, schrieb Chris:
> My Plugin depends on org.slf4j.api_1.6.1 an provides the Class "org.slf4j.impl.StaticLoggerBinder". Eclipse detects an a validation problem :
> "Missing Constraint: Eclipse-GenericRequire:org.slf4j.impl.StaticLoggerBinder: (&(version>=1.6.0)(!(version>=1.7.0)))".
> How can i fix this Problem ?
Sorry for the late reply but I haven't seen the message until just now.
For a detailed explanation of the bundles please have a look at the
README in CVS.
http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.orbit/ org.slf4j.api/readme-bundles.txt?view=co&root=Tools_Proj ect&pathrev=v1_6_1
Basically, if you want to provide your own SLF4J implementation you need
to create a fragement to slf4j.api bundle. In this fragment you also
need to specify an additional manifest header. This ensures that logging
is actually possible at runtime.
The limitation with the Eclipse-GenericRequire/GenericCapability header
was put in place in order to fix an issue with SLF4J 1.5.x in Helios.
Basically SLF4J was failing horribly when no implementation was around.
They changed it in 1.6. Thus, we might be able to remove that again.
Feel free to open a bug in order to request that removal.
-Gunnar
--
Gunnar Wagenknecht
gunnar@wagenknecht.org
http://wagenknecht.org/
|
|
|
Powered by
FUDForum. Page generated in 0.04269 seconds