manticore+-+budi prakosa

example antenna config file on mac osx

13.12.2010 (1:16 pm) – Filed under: Uncategorized ::
<project name="MyProject" default="build" basedir=".">

<taskdef resource="antenna.properties" />

<property name="wtk.home" value="/Applications/Java_ME_SDK_3.0.app/Contents/Resources/" />
<property name="wtk.cldc.version" value="1.1" />
<property name="wtk.midp.version" value="2.0" />

<target name="build">
    <wtkjad version="0.0.1" name="HelloWorld" vendor="Me!" jadfile="myapp.jad" jarfile="myapp.jar">
        <!-- typically 3 MIDlets are supported by devices -->
        <midlet name="My Application" class="com.iyok.HelloWorld" />
    </wtkjad>

    <mkdir dir="build/classes" />
    
    <wtkbuild srcdir="src" destdir="build/classes" preverify="false">
    </wtkbuild>

    <wtkpackage jadfile="myapp.jad" jarfile="myapp.jar" preverify="true">
    	<fileset dir="build/classes/" />
    </wtkpackage>

</target>

<target name="run">
	<wtkrun jadfile="myapp.jad"/>
</target>

<target name="micro">
	<exec executable="java">
 		<arg value="-cp"/>
		<arg value="/Applications/Development/microemulator-2.0.4/microemulator.jar"/>
		<arg value="org.microemu.app.Main"/>	
		<arg value="myapp.jad"/>
	</exec>	
</target>

</project>

Leave a Comment
(All comments are moderated before they appear on the site.)