Rev 316 |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
<project name="DUBwiseInstaller" basedir="." default="build">
<property name="wtk.home" value="/home/ligi/tools/WTK2.2/"/>
<!-- jar filename -->
<property name="project_name" value="DUBwiseInstaller"/>
<property name="project_version" value="0.8"/>
<property name="res_dir" location="res"/>
<property name="build_dir" location="${basedir}/build/"/>
<property name="bin_dir" location="${basedir}/bin/"/>
<property name="lib_dir" location="${basedir}/lib/"/>
<property name="src_dir" location="${basedir}/src/"/>
<property name="basename" value="${project_name}"/>
<taskdef resource="antenna.properties" classpath="${lib_dir}/antenna.jar"/>
<property name="wtk.midp.version" value="1.0"/>
<property name="wtk.cldc.version" value="1.0"/>
<property name="wtk.midpapi" value="${lib_dir}/classes.zip"/>
<target name="build" depends="cleaner,builddirs">
<wtkbuild destdir="${build_dir}/classes" srcdir="${src_dir}" target="1.1" preverify="false"/>
<wtkjad
jadfile="${bin_dir}/${basename}.jad"
jarfile="${bin_dir}/${basename}.jar"
update="false"
manifest="${build_dir}/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="${bin_dir}/${basename}.jar"
jadfile="${bin_dir}/${basename}.jad"
basedir="${build_dir}/classes"
manifest="${build_dir}/MANIFEST.MF"
obfuscate="true"
preverify="true">
<fileset dir="${res_dir}/">
<include name="*"/>
</fileset>
</wtkpackage>
</target>
<target name="clean">
<delete dir="${build_dir}"/>
</target>
<target name="cleaner">
<delete dir="${build_dir}"/>
<delete file="${bin_dir}/*.ja*"/>
</target>
<target name="builddirs">
<delete dir="${build_dir}"/>
<mkdir dir="${build_dir}"/>
<mkdir dir="${build_dir}/classes"/>
<mkdir dir="${build_dir}/bin"/>
</target>
</project>