Changing the root Java JAR package
I am writing a Java agent that uses the ASM Java library to handle bytecode. This is a shared library and I want to be sure of the ASM version my code is using at runtime.
Which is the easiest and most automated way to use ASM classes and process them in a private copy where all the classes have been moved to a new root package.
To be specific, I want to take ASM banks and turn org.objectweb.asm.*
intoorg.myproject.internal.org.objectweb.asm.*
Please remember that I am most interested in the automated solution. I know I can get sources for ASM and do it manually or with a script and then recompile the jars, but that seems like a lot of overhead.
+2
a source to share