Code Droid
Code Droid

Reputation: 10472

Specify classes to obfuscate with ProGuard?

How do I specify that I want Proguard to obfuscate a set of jar files that I am including in my project? I have seen the docs:

-injars class_path      Specifies the program jars (or wars, ears, zips, or directories).
-outjars class_path     Specifies the name of the output jars (or wars, ears, zips, or directories).
-libraryjars class_path

But I still ask which one specifies a jar file to be obfuscated? Not at all clear from the documentation.

I know this is a basic question but lets say I have several jars in libs.jar how to I indicate these as inputs? Also should it be classpath or can I specify directory.

Upvotes: 1

Views: 1665

Answers (1)

lenik
lenik

Reputation: 23528

If you work in Eclipse and your .jar files are put in lib/ folder and included in your project, you don't have to worry about them, ProGuard will automatically use them to do its magic.

Upvotes: 1

Related Questions