I have some very serious JAR hell going on, and need to scan my entire Java classpath (consisting of more than 50 JARs) for all the instances where a particular class is used, let's call it com.fizz.buzz.Widget
.
This Widget
class could be referenced both from inside bytecode (.class files) as well as XML descriptor files inside the JARs. I imagine I would need a 2-pronged approach: 1 phase where I essentially zgrep
through all the JARs, scanning for XML files containing com.fizz.buzz.Widget
in them, and a 2nd phase where I somehow scan the bytecode. Either way, not entirely sure what I need to do for both phases, or if there is a magical tool that does this for me all in one fell swoop. Ideas?