-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add log4j.plugin.enableBndAnnotations
option to PluginProcessor
#3258
base: main
Are you sure you want to change the base?
Conversation
This adds a `log4j.plugin.enableBndAnnotations` option to the `PluginProcessor`. Its default value is inferred from the compiler classpath. We also rename the `pluginPackage` option to a more coherent `log4j.plugin.package` option. Closes #3251
try { | ||
Class.forName("aQute.bnd.annotation.spi.ServiceConsumer"); | ||
return true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks for ServiceConsumer
on the plugin processor's classpath, while it should look for it on the application classpath.
@ppkarwasz, why do we need a toggle property instead of disabling it, always? This very much smells like leaking an internal detail through configuration properties. |
It is an option that controls the output of the |
Could you elaborate on how we can implement this? Does this also mean, there will be no need for a toggle property? |
What I mean is, I just replace: Lines 318 to 325 in e6e6ddd
with |
This adds a
log4j.plugin.enableBndAnnotations
option to thePluginProcessor
. Its default value is inferred from the compiler classpath.We also rename the
pluginPackage
option to a more coherentlog4j.plugin.package
option.Fixes #3251