Rev 208 |
Go to most recent revision |
Blame |
Last modification |
View Log
| RSS feed
<project name="MKMiniMidlet" basedir=".">
<property name="wtk.home" value="/home/ligi/tools/WTK2.2/"/>
<property name="project_name" value="MKMiniMidlet"/> <!-- jar filename -->
<property name="res_dir" location="${basedir}/res"/>
<property name="build_dir" location="${basedir}/build/"/>
<property name="lib_dir" location="${basedir}/lib/"/>
<property name="src_dir" location="${basedir}/src/"/>
<taskdef resource="antenna.properties" classpath="${lib_dir}/antenna.jar"/>
<property name="wtk.midp.version" value="2.0"/>
<property name="wtk.midpapi" value="${lib_dir}/classes.zip"/>
<target name="build">
<wtkbuild destdir="${build_dir}/classes" srcdir="${src_dir}" target="1.1" preverify="true"/>
<wtkjad
jadfile="${build_dir}/bin/${project_name}.jad"
jarfile="${build_dir}/bin/${project_name}.jar"
update="false"
manifest="${build_dir}/bin/MANIFEST.MF"
name="${project_name}"
vendor="LiGi"
version="0.26">
<attribute name="MIDletX-No-Command" value="true"/>
<midlet name="${project_name}" class="${project_name}" />
<!-- !!TODO!! Remove Icon JAD entry if no icon is there -->
</wtkjad>
<wtkpackage
jarfile="${build_dir}/bin/${project_name}.jar"
jadfile="${build_dir}/bin/${project_name}.jad"
basedir="${build_dir}/classes"
manifest="${build_dir}/bin/MANIFEST.MF"
obfuscate="true"
preverify="true">
<fileset dir="${res_dir}/">
<include name="*"/>
</fileset>
</wtkpackage>
<!-- !!TODO!! just zip if flag set -->
<zip destfile="${build_dir}/deploy.zip" basedir="${build_dir}/bin/" includes="**/*"/>
</target>
<target name="clean">
<delete dir="${build_dir}"/>
<delete dir="${res_dir}"/>
<tstamp/>
<mkdir dir="${build_dir}"/>
<mkdir dir="${build_dir}/classes"/>
<mkdir dir="${build_dir}/bin"/>
<mkdir dir="${res_dir}"/>
</target>
</project>