mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-07-22 23:19:14 +02:00
Unlike upstream this package does not bundle bndlib Closes: https://bugs.gentoo.org/203080 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/35320/commits/51c6da26e1a72c39443c3d4c4994b9fb96cf8b91 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
21 lines
1.1 KiB
Diff
21 lines
1.1 KiB
Diff
Upstream uses an older version of slf4j-simple
|
|
--- a/biz.aQute.bnd/src/aQute/bnd/main/bnd.java
|
|
+++ b/biz.aQute.bnd/src/aQute/bnd/main/bnd.java
|
|
@@ -486,14 +486,14 @@ public class bnd extends Processor {
|
|
System.setProperty(DEFAULT_LOG_LEVEL_KEY, "warn");
|
|
level = org.slf4j.spi.LocationAwareLogger.WARN_INT;
|
|
}
|
|
- Field field = org.slf4j.impl.SimpleLogger.class.getDeclaredField("CONFIG_PARAMS");
|
|
+ Field field = org.slf4j.simple.SimpleLogger.class.getDeclaredField("CONFIG_PARAMS");
|
|
field.setAccessible(true);
|
|
Object CONFIG_PARAMS = field.get(null);
|
|
- field = org.slf4j.impl.SimpleLoggerConfiguration.class.getDeclaredField("defaultLogLevel");
|
|
+ field = org.slf4j.simple.SimpleLoggerConfiguration.class.getDeclaredField("defaultLogLevel");
|
|
field.setAccessible(true);
|
|
field.set(CONFIG_PARAMS, level);
|
|
|
|
- field = org.slf4j.impl.SimpleLogger.class.getDeclaredField("currentLogLevel");
|
|
+ field = org.slf4j.simple.SimpleLogger.class.getDeclaredField("currentLogLevel");
|
|
field.setAccessible(true);
|
|
field.set(logger, level);
|
|
} catch (Exception e) {
|