My project uses spring for IoC. After obfuscation the application context fails to find the bean since it's class name has been changed. I tried to use -adaptresourcefilecontents option to get context.xml file be updated according to the class name, but it didn't work: the file wasn't changed. Any ideas?
A:
Try to add file filter, I don't know if proguard looks at xml file as well.
Also, the documentation mentions changing only class names. Since Spring injections usually work on properties you will have a problem identifying the right setters.
David Rabinowitz
2009-11-17 11:34:51
I tried to use file filter, it didn't work. Seems it really doesn't process xml files.Good point regarding the method names, thanks for the note.
voldemar
2009-11-17 14:53:50