does not really include anything - it just means that classname X can be used at short version for com.bar.X in the source code
But you can still specify com.other.Y without any import in the code.
So you will need to either: - analyze the class file with reflection and really see what classes are being used - analyze the source file as a compiler does and really see what classes are being used
Neither are trivial to do.
I am not aware of any tool dedicated to do this.
But most obfuscators can actually do this: remove unused code.
It seems that ProGuard is almost what we are looking for. I meant that I was looking for a tool to remove unused code, and since ProGuard also comes with a plugin for ANT, it's seems perfect.
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.