diff options
Diffstat (limited to 'examples/ant/applications2.xml')
-rw-r--r-- | examples/ant/applications2.xml | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/examples/ant/applications2.xml b/examples/ant/applications2.xml index 2e28f01..681a894 100644 --- a/examples/ant/applications2.xml +++ b/examples/ant/applications2.xml @@ -1,6 +1,6 @@ <!-- This Ant build file illustrates how to process applications, by including ProGuard-style configuration options. - Usage: ant -f applications.xml --> + Usage: ant -f applications2.xml --> <project name="Applications" default="obfuscate" basedir="../.."> @@ -21,16 +21,22 @@ <!-- -libraryjars jai_core.jar --> <!-- ... --> - <!-- Preserve all public applications. --> + <!-- Save the obfuscation mapping to a file, and preserve line numbers. --> - -keepclasseswithmembers public class * { - public static void main(java.lang.String[]); - } + -printmapping out.map + -renamesourcefileattribute SourceFile + -keepattributes SourceFile,LineNumberTable <!-- Preserve all annotations. --> -keepattributes *Annotation* + <!-- Preserve all public applications. --> + + -keepclasseswithmembers public class * { + public static void main(java.lang.String[]); + } + <!-- Preserve all native method names and the names of their classes. --> -keepclasseswithmembernames class * { |