![]() <ANTENNA/>
|
AntennaAn Ant-to-End Solution For Wireless JavaVersion 1.2.1
(c) 2002-2010
|
<preserve>
nested element.
The task provides the following parameters:
Parameter | Type | Required | Purpose |
---|---|---|---|
jarfile | file | yes | The name of the JAR file to optimize. |
jadfile | file | yes | The name of the JAD file that accompanies the JAR file. 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 name of the resulting, optimized JAR file. Defaults to the original JAR file, if not specified. |
bootclasspath | path | no | Specifies the basic system classes that are needed by the application. Defaults to the MIDP API contained in ${wtk.home}/lib/midpapi.zip, or ${wtk.midpapi}, if specified. |
classpath | path | no | Specifies additional libraries that are needed by the application, but not part of the JAR file (for example libraries that are already available on a certain phone). |
classpathref | string | no | A reference to a classpath defined elsewhere. |
bootclasspathref | string | no | A reference to a bootclasspath defined elsewhere. |
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. |
Parameter | Type | Required | Purpose |
---|---|---|---|
class | string | yes | The fully qualified name of a class that needs to be in the JAR file even if the smartlinking task thinks that it doesn't. |
if | String | no | Provides fine-grained control over the classes being preserved. The class will only be preserved if the given property is defined. |
unless | String | no | Provides fine-grained control over the classes being preserved. The class will only be preserved if the given property is not defined. |