Where is the Conclusion for Proguard -whyareyoukeeping?
I am using Eclipse Luna Service Release 1 (4.4.1 build id 20140925-1800) with M2E for Maven. I would like to know why a.company.Clazz
is stored. I added <option>-whyareyoukeeping class a.company.Clazz</option>
to config (see below). The Eclipse console shows the output (see below). Execution pauses on Explaining why classes and class members are being kept...
, but nothing is printed to the console.
I used Sysinternal Process Monitor to see if any output is going to a file. I can see that the output is being written to ...\target\proguard_seeds.txt
and ...\target\glass.jar
, but none of them contain the reason for saving a.company.Clazz
.
Configuration
...
<plugin>
<groupId>com.github.wvengen</groupId>
<artifactId>proguard-maven-plugin</artifactId>
<version>2.0.8</version>
...
<configuration>
<proguardVersion>5.0</proguardVersion>
<injar>${project.build.finalName}.jar</injar>
<outjar>glass.jar</outjar>
<includeDependency>true</includeDependency>
<obfuscate>false</obfuscate>
<options>
<option>-verbose</option>
<option>-whyareyoukeeping class a.company.Clazz</option>
<option>-dontnote</option>
<option>-dontoptimize</option>
...
</options>
...
</configuration>
</plugin>
...
Output
...
[proguard] Printing kept classes, fields, and methods... [proguard] Shrinking... [proguard] Explaining why classes and class members are being kept... [proguard] [proguard] Removing unused program classes and class elements... [proguard] Original number of program classes: 1988 [proguard] Final number of program classes: 136 [proguard] Inlining subroutines... [proguard] Preverifying... [proguard] Writing output...
...
source to share