-
You're right. Sorry I don't know how I thought there was a compiler issue there.
I'm stilling having the same trouble building my project though. I guess the issue is more complicated than I could demonstrate with a small class file.
If I view my jar with JD-GUI http://java.decompiler.free.fr/ I can see the class file for my inner class fine, but if I view the outer class it cannot seem...
2009-07-27 11:52:03 UTC in ProGuard Java Optimizer and Obfuscator
-
Sorry for the double post, I hit refresh on the page.
2009-07-24 17:05:57 UTC in ProGuard Java Optimizer and Obfuscator
-
Hi Eric.
I've compiled some very simple test jars which demonstrate my problem. Any choice you can take a look at them?
This jar is not obfuscated
http://heychinaski.com/proguardJars/test.jar
But this one is:
http://heychinaski.com/proguardJars/testobfus.jar
Here is the ProGuard ant task I used:
<proguard skipnonpubliclibraryclasses="false"...
2009-07-24 17:05:24 UTC in ProGuard Java Optimizer and Obfuscator
-
Hi Eric.
I've compiled some very simple test jars which demonstrate my problem. Any choice you can take a look at them?
This jar is not obfuscated
http://heychinaski.com/proguardJars/test.jar
But this one is:
http://heychinaski.com/proguardJars/testobfus.jar
Here is the ProGuard ant task I used:
<proguard skipnonpubliclibraryclasses="false"...
2009-07-24 15:03:37 UTC in ProGuard Java Optimizer and Obfuscator
-
Yeah I can see that the class file is there if I use the "jar -tf out.jar" command. Also if I unzip the package I can see the class file in the correct package folder.
However, even if I use this extracted output as my classpath I can't get the java compiler to see this class. Is there some way I can check this class file? It seems to me that there's something wrong with it so Java...
2009-07-24 11:55:42 UTC in ProGuard Java Optimizer and Obfuscator
-
Hi Eric. Thanks replying and for the keep tip, that seems to have worked and has simplified my configuration.
I should have mentioned that I am also preserving the annotations with a keepattribute tag.
I'm inspecting the jar with eclipse by placing it on the classpath of another project. I can see the inner class under the outer class in an unobfuscated jar but not with the ProGuard...
2009-07-23 10:21:53 UTC in ProGuard Java Optimizer and Obfuscator
-
I'm obfuscating a library with ProGuard using the Ant task.
I'm keeping particular class names and their method names when they have a particular annotation (@ApiAll) and I'm requesting that the InnerClasses attribute be kept:
[code]<keepattribute name="InnerClasses" />
<keep annotation="com.example.ApiAll"/>
<keepclassmembers...
2009-07-22 15:29:34 UTC in ProGuard Java Optimizer and Obfuscator