Rev 390 |
Blame |
Last modification |
View Log
| RSS feed
<project name="DUBwise" basedir=".">
<property name="wtk.home" value="/home/ligi/tools/WTK2.2/"/>
<property name="project_name" value="DUBwise"/> <!-- jar filename -->
<property name="project_version" value="0.42"/>
<property file="build.props"/>
<property name="res_dir" location="${basedir}/res/${screensize}"/>
<property name="build_dir" location="${basedir}/build/"/>
<property name="lib_dir" location="${basedir}/lib/"/>
<property name="src_dir" location="${basedir}/src/"/>
<property name="preprocessed_src_dir" location="${basedir}/tmp/pp_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">
<wtkpreprocess version="2" srcdir="${src_dir}" destdir="${preprocessed_src_dir}" symbols="VERSION=${project_version}" verbose="false"/>
<wtkbuild destdir="${build_dir}/classes" srcdir="${preprocessed_src_dir}" target="1.1" preverify="true"/>
<wtkjad
jadfile="${build_dir}/bin/${project_name}_${screensize}.jad"
jarfile="${build_dir}/bin/${project_name}_${screensize}.jar"
update="false"
manifest="${build_dir}/bin/MANIFEST.MF"
name="${project_name}"
vendor="LiGi"
version="${project_version}">
<attribute name="MIDletX-No-Command" value="true"/>
<attribute name="MIDlet-Icon" value="i.png"/>
<midlet name="${project_name}" class="${project_name}" icon="i.png" />
<!-- !!TODO!! Remove Icon JAD entry if no icon is there -->
</wtkjad>
<wtkpackage
jarfile="${build_dir}/bin/${project_name}_${screensize}.jar"
jadfile="${build_dir}/bin/${project_name}_${screensize}.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}"/>
<tstamp/>
<mkdir dir="${build_dir}"/>
<mkdir dir="${build_dir}/classes"/>
<mkdir dir="${build_dir}/bin"/>
</target>
</project>