I am obfuscating the library using ProGuard using the Ant task.
I save certain class names and their method names when they have a specific annotation (@ApiAll), and I ask you to keep the InnerClasses attribute:
<keepattribute name="InnerClasses" /> <keep annotation="com.example.ApiAll"/> <keepclassmembers annotation="com.example.ApiAll"> <constructor access="public protected"/> <field access="public protected"/> <method access="public protected"/> <constructor access="protected"/> </keepclassmembers>
If I check the output mapping file, I see that my inner class, which has the annotation, and its members will not take pictures of their names. However, when I look in the generated jar file, I cannot find the class.
Am I missing something? Why does the mapping tell me that it saves this class when it doesn't work?
java ant proguard
Tom martin
source share