ANT Tags <wtkrun/>

 

- Info:

- Shows how to use tasks defined in antenna to work with WTK.

- You need to get antenna.jar and put it somewhere.

- File antenna.properties contains pairs (name,classname) needed to define ANT tasks.

 

- Example:

- Create ANT Script Test.xml

 

Test.xml

<?xml version="1.0" encoding="UTF-8"?>

 

<project name="MyAntProject" default="default" basedir=".">

<property name = "wtk.home" value = "C:/WTK22"/>

<taskdef resource = "antenna.properties" classpath = "C:/WTK22/wtklib/antenna.jar"/>

<target name = "default">

<wtkrun jadfile = "C:/Stuff/jars/Series6010.jad"

device = "DefaultGrayPhone"

heapsize = "200000" />

</target>

</project>

antenna.properties

wtkjad=de.pleumann.antenna.WtkJad

wtkbuild=de.pleumann.antenna.WtkBuild

wtkpackage=de.pleumann.antenna.WtkPackage

wtkmakeprc=de.pleumann.antenna.WtkMakePrc

wtkrun=de.pleumann.antenna.WtkRun

wtkpreverify=de.pleumann.antenna.WtkPreverify

wtkobfuscate=de.pleumann.antenna.WtkObfuscate

wtksmartlink=de.pleumann.antenna.WtkSmartLink

wtkpreprocess=de.pleumann.antenna.WtkPreprocess

wtkdeploy=de.pleumann.antenna.WtkDeploy

wtkrapc=de.pleumann.antenna.WtkRapc

 

- Errors:

- java.lang.RuntimeException: Unrecognized argument: -heapsize

- Do not use heapsize parameter for 2.0 versions of Series 60 MIDP SDK emulator.

 

- Emulator starts and then closes immediately.

- <wtk> tag can't be used for folowing versions of Series 60 MIDP SDK emulators: 1.0, 1.2.1, 2.0