diff options
author | Joe Onorato <joeo@android.com> | 2009-08-31 10:12:00 -0700 |
---|---|---|
committer | Joe Onorato <joeo@android.com> | 2009-08-31 10:12:00 -0700 |
commit | b72c5c2e5482cf10117b2b25f642f7616b2326c3 (patch) | |
tree | f02ba1bc29f4fe6853d9b7008eed37cdcfb96e81 /examples/ant/applets.xml | |
parent | a23344a828357fe4b6596f8af5fed467d72757ab (diff) | |
download | proguard-b72c5c2e5482cf10117b2b25f642f7616b2326c3.tar.gz |
ProGuard 4.4android-sdk-tools_r4android-sdk-tools_r3android-sdk-2.1_r1android-sdk-2.0_r1android-sdk-2.0.1_r1android-sdk-2.0.1-docs_r1android-2.1_r2.1sandroid-2.1_r2.1p2android-2.1_r2.1pandroid-2.1_r2android-2.1_r1android-2.0_r1android-2.0.1_r1eclair-sholes-release2eclair-sholes-releaseeclair-releaseeclair-passion-release
Diffstat (limited to 'examples/ant/applets.xml')
-rw-r--r-- | examples/ant/applets.xml | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/examples/ant/applets.xml b/examples/ant/applets.xml new file mode 100644 index 0000000..a55b1c3 --- /dev/null +++ b/examples/ant/applets.xml @@ -0,0 +1,81 @@ +<!-- This Ant build file illustrates how to process applets. + Usage: ant -f applets.xml --> + +<project name="Applets" default="obfuscate" basedir="../.."> + +<target name="obfuscate"> + <taskdef resource="proguard/ant/task.properties" + classpath="lib/proguard.jar" /> + + <proguard printseeds="on"> + + <!-- Specify the input jars, output jars, and library jars. --> + + <injar file="in.jar" /> + <outjar file="out.jar" /> + + <libraryjar file="${java.home}/lib/rt.jar" /> + + <!-- Preserve all public applets. --> + + <keep access="public" extends="java.applet.Applet" /> + + <!-- Preserve all annotations. --> + + <keepattribute name="*Annotation*" /> + + <!-- Preserve all native method names and the names of their classes. --> + + <keepclasseswithmembernames> + <method access="native" /> + </keepclasseswithmembernames> + + <!-- Preserve the methods that are required in all enumeration classes. --> + + <keepclassmembers extends="java.lang.Enum"> + <method access="public static" + type="**[]" + name="values" + parameters="" /> + <method access="public static" + type="**" + name="valueOf" + parameters="java.lang.String" /> + </keepclassmembers> + + <!-- Explicitly preserve all serialization members. The Serializable + interface is only a marker interface, so it wouldn't save them. + You can comment this out if your library doesn't use serialization. + If your code contains serializable classes that have to be backward + compatible, please refer to the manual. --> + + <keepclassmembers implements="java.io.Serializable"> + <field access ="static final" + type ="long" + name ="serialVersionUID" /> + <field access ="static final" + type ="java.io.ObjectStreamField[]" + name ="serialPersistentFields" /> + <method access ="private" + type ="void" + name ="writeObject" + parameters="java.io.ObjectOutputStream" /> + <method access ="private" + type ="void" + name ="readObject" + parameters="java.io.ObjectInputStream" /> + <method type ="java.lang.Object" + name ="writeReplace" + parameters="" /> + <method type ="java.lang.Object" + name ="readResolve" + parameters="" /> + </keepclassmembers> + + <!-- Your application may contain more items that need to be preserved; + typically classes that are dynamically created using Class.forName --> + + </proguard> +</target> + +</project> |