diff options
Diffstat (limited to 'examples/ant/applications3.xml')
-rw-r--r-- | examples/ant/applications3.xml | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/examples/ant/applications3.xml b/examples/ant/applications3.xml index d5501e0..e42eb39 100644 --- a/examples/ant/applications3.xml +++ b/examples/ant/applications3.xml @@ -1,6 +1,6 @@ <!-- This Ant build file illustrates how to process applications, using a full-blown XML configuration. - Usage: ant -f applications.xml --> + Usage: ant -f applications3.xml --> <project name="Applications" default="obfuscate" basedir="../.."> @@ -8,7 +8,9 @@ <taskdef resource="proguard/ant/task.properties" classpath="lib/proguard.jar" /> - <proguard printseeds="on"> + <proguard printseeds="on" + printmapping="out.map" + renamesourcefileattribute="SourceFile"> <!-- Specify the input jars, output jars, and library jars. --> @@ -21,6 +23,14 @@ <!-- libraryjar file="jai_core.jar" / --> <!-- ... / --> + <!-- Preserve line numbers in the obfuscated stack traces. --> + + <keepattribute name="LineNumberTable" /> + <keepattribute name="SourceFile" /> + + <!-- Preserve all annotations. --> + + <keepattribute name="*Annotation*" /> <!-- Preserve all public applications. --> @@ -31,10 +41,6 @@ parameters="java.lang.String[]" /> </keepclasseswithmembers> - <!-- Preserve all annotations. --> - - <keepattribute name="*Annotation*" /> - <!-- Preserve all native method names and the names of their classes. --> <keepclasseswithmembernames> |