Parameter
|
Type
|
Required
|
Purpose
|
jarfile
|
file
|
yes
|
The unobfuscated source JAR file to read classes from.
|
jadfile
|
file
|
no
|
A JAD file that accompanies the JAR file. The task uses this
file to determine the list of classes to exclude from
obfuscation as follows:
-
The main MIDlet classes, denoted by the MIDlet-# keys in
the JAD file are preserved.
-
Classes to be loaded by name (on a Motorola phone),
denoted by an iDEN-Install-Class-# keys are preserved,
too.
Additional classes to spare from obfuscation can be specified
using the "preserve" nested element.
If the
source JAR file is overwritten (no "tojarfile" being specified),
the "MIDlet-Jar-Size" key in the JAD is updated when the task is
finished.
|
tojarfile
|
file
|
no
|
The obfuscated target JAR file to create. Defaults to the
source JAR file, if not specified.
|
bootclasspath
|
path
|
no
|
The bootclasspath is needed by the obfuscator. It
defaults to the MIDP API contained in ${wtk.home}/lib/midpapi.zip,
or ${wtk.midpapi}, if specified. Only for RetroGuard, the emptied-out
MIDP API is used.
|
classpath
|
path
|
no
|
The classpath is needed by the obfuscator. If you
use any external libraries other than the MIDP API itself,
specify them here.
|
classpathref
|
string
|
no
|
A reference to a classpath defined elsewhere.
|
bootclasspathref
|
string
|
no
|
A reference to a bootclasspath defined elsewhere.
|
obfuscator
|
String
|
no
|
Allows to choose between ProGuard and RetroGuard, in case both
obfuscators are present. Valid arguments are "proguard" and
"retroguard". If this attribute is not specified, ProGuard is
always preferred over RetroGuard.
|
if
|
String
|
no
|
Provides fine-grained control over task execution based on a
property definition. The task will only be executed if the
given property is defined.
|
unless
|
String
|
no
|
Provides fine-grained control over task execution based on a
property definition. The task will only be executed if the
given property is not defined.
|
verbose
|
boolean
|
no
|
Allows to set the verbosity of the task's output.
|