if a plugin is calling another plugin, aside from ...
# community-support
c
if a plugin is calling another plugin, aside from getting a stacktrace to get caller (which doesn't actually get that plugin id...), is there a way to find out what plugin is currently being used? I'm not certain how this could work, but, mebbe
m
Copy code
this::class.java.protectionDomain.codeSource.location
🙈
Then open the jar and look for the plugin descriptor in the resources
Works for debugging. Wouldn't use in production 😅
c
lol
well... not dissimilar from the stack trace solution (which I was probably thinking about doing that in node, but still)
so yeah, probably better just to say "you should do this"