Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Obfuscating using Yguard  RSS feed

Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone used the obfuscate ant task with yGuard?
I am using the obfuscate ant task that comes with the yGuard obfuscating tool.
I have three main files in my application: x.jar, y.jar, z.war.
x.jar is not dependent on any other jars
y.jar is dependent on x.jar
z.war is dependent on x.jar and y.jar
I'd like to obfuscate all three main files. The problem is that the ant task only obfuscates one file at a time (I believe... correct me if I'm wrong) and when the methods are renamed in a class in one jar the dependent jars can no longer be called.
The file to obfuscate is specified by the inoutpair node. The externalclasses node specifies the dependent jars. Any jars/classes specified by externalclasses do not get obfuscated. However, I do want x.jar and y.jar to be obfuscated.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!