What is the correct way to write code to do the following:
Base64 base64 = new Base64
base64.getClass().getSourcePackageAndVersion() // ???
I’m trying to detect in my current Grails project if I am getting Base64 from
commons-codec-1.3.jar or commons-codec-1.4.jar. Is there a way to force it to use the 1.4 version while in debug / dev mode?
You can find the jar file or classes directory the class is loaded from with this:
or since you already have the class: