Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
193 | ligi | 1 | <project name="MKMiniMidlet" basedir="."> |
2 | <property name="wtk.home" value="/home/ligi/tools/WTK2.2/"/> |
||
3 | |||
4 | <property name="project_name" value="MKMiniMidlet"/> <!-- jar filename --> |
||
5 | |||
6 | <property name="res_dir" location="${basedir}/res"/> |
||
7 | <property name="build_dir" location="${basedir}/build/"/> |
||
8 | <property name="lib_dir" location="${basedir}/lib/"/> |
||
9 | <property name="src_dir" location="${basedir}/src/"/> |
||
10 | |||
11 | <taskdef resource="antenna.properties" classpath="${lib_dir}/antenna.jar"/> |
||
12 | |||
13 | <property name="wtk.midp.version" value="2.0"/> |
||
14 | |||
15 | <property name="wtk.midpapi" value="${lib_dir}/classes.zip"/> |
||
16 | |||
17 | <target name="build"> |
||
18 | <wtkbuild destdir="${build_dir}/classes" srcdir="${src_dir}" target="1.1" preverify="true"/> |
||
19 | <wtkjad |
||
20 | jadfile="${build_dir}/bin/${project_name}.jad" |
||
21 | jarfile="${build_dir}/bin/${project_name}.jar" |
||
22 | update="false" |
||
23 | manifest="${build_dir}/bin/MANIFEST.MF" |
||
24 | name="${project_name}" |
||
25 | vendor="LiGi" |
||
208 | ligi | 26 | version="0.18"> |
193 | ligi | 27 | <attribute name="MIDletX-No-Command" value="true"/> |
28 | |||
29 | <midlet name="${project_name}" class="${project_name}" /> |
||
30 | |||
31 | <!-- !!TODO!! Remove Icon JAD entry if no icon is there --> |
||
32 | </wtkjad> |
||
33 | |||
34 | <wtkpackage |
||
35 | jarfile="${build_dir}/bin/${project_name}.jar" |
||
36 | jadfile="${build_dir}/bin/${project_name}.jad" |
||
37 | basedir="${build_dir}/classes" |
||
38 | manifest="${build_dir}/bin/MANIFEST.MF" |
||
39 | obfuscate="true" |
||
40 | preverify="true"> |
||
41 | <fileset dir="${res_dir}/"> |
||
42 | <include name="*"/> |
||
43 | </fileset> |
||
44 | </wtkpackage> |
||
45 | |||
46 | <!-- !!TODO!! just zip if flag set --> |
||
47 | <zip destfile="${build_dir}/deploy.zip" basedir="${build_dir}/bin/" includes="**/*"/> |
||
48 | </target> |
||
49 | |||
50 | |||
51 | <target name="clean"> |
||
52 | <delete dir="${build_dir}"/> |
||
53 | <delete dir="${res_dir}"/> |
||
54 | |||
55 | <tstamp/> |
||
56 | |||
57 | <mkdir dir="${build_dir}"/> |
||
58 | <mkdir dir="${build_dir}/classes"/> |
||
59 | <mkdir dir="${build_dir}/bin"/> |
||
60 | <mkdir dir="${res_dir}"/> |
||
61 | </target> |
||
62 | |||
63 | |||
64 | </project> |