aboutsummaryrefslogtreecommitdiffstats
path: root/examples/ant/applets.xml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ant/applets.xml')
-rw-r--r--examples/ant/applets.xml15
1 files changed, 11 insertions, 4 deletions
diff --git a/examples/ant/applets.xml b/examples/ant/applets.xml
index a55b1c3..4d0cb38 100644
--- a/examples/ant/applets.xml
+++ b/examples/ant/applets.xml
@@ -7,7 +7,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. -->
@@ -16,14 +18,19 @@
<libraryjar file="${java.home}/lib/rt.jar" />
- <!-- Preserve all public applets. -->
-
- <keep access="public" extends="java.applet.Applet" />
+ <!-- Optionally preserve line numbers in the obfuscated stack traces.
+ <keepattribute name="LineNumberTable">
+ <keepattribute name="SourceFile">
+ -->
<!-- Preserve all annotations. -->
<keepattribute name="*Annotation*" />
+ <!-- Preserve all public applets. -->
+
+ <keep access="public" extends="java.applet.Applet" />
+
<!-- Preserve all native method names and the names of their classes. -->
<keepclasseswithmembernames>