Rev 291 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
280 | ligi | 1 | <project name="DUBwiseInstaller" basedir="."> |
2 | <property name="wtk.home" value="/home/ligi/tools/WTK2.2/"/> |
||
3 | |||
4 | <property name="project_name" value="DUBwiseInstaller"/> <!-- jar filename --> |
||
5 | |||
316 | ligi | 6 | <property name="project_version" value="0.7"/> |
280 | ligi | 7 | |
8 | <property name="res_dir" location="res"/> |
||
9 | <property name="build_dir" location="${basedir}/build/"/> |
||
10 | <property name="bin_dir" location="${basedir}/bin/"/> |
||
11 | |||
12 | <property name="lib_dir" location="${basedir}/lib/"/> |
||
13 | <property name="src_dir" location="${basedir}/src/"/> |
||
14 | |||
15 | <property name="basename" value="${project_name}"/> |
||
16 | |||
17 | |||
18 | <echo > |
||
19 | ${build_dir} |
||
20 | ${basename} |
||
21 | </echo> |
||
22 | |||
23 | <taskdef resource="antenna.properties" classpath="${lib_dir}/antenna.jar"/> |
||
24 | |||
25 | <property name="wtk.midp.version" value="2.0"/> |
||
26 | <property name="wtk.cldc.version" value="1.0"/> |
||
27 | |||
28 | <property name="wtk.midpapi" value="${lib_dir}/classes.zip"/> |
||
29 | |||
30 | <target name="build" depends="builddirs"> |
||
31 | |||
32 | <wtkbuild destdir="${build_dir}/classes" srcdir="${src_dir}" target="1.1" preverify="false"/> |
||
33 | <wtkjad |
||
34 | jadfile="${bin_dir}/${basename}.jad" |
||
35 | jarfile="${bin_dir}/${basename}.jar" |
||
36 | update="false" |
||
37 | manifest="${build_dir}/MANIFEST.MF" |
||
38 | name="${project_name}" |
||
39 | vendor="LiGi" |
||
40 | version="${project_version}"> |
||
41 | <attribute name="MIDletX-No-Command" value="true"/> |
||
42 | <attribute name="MIDlet-Icon" value="i.png"/> |
||
43 | <midlet name="${project_name}" class="${project_name}" icon="i.png" /> |
||
44 | |||
45 | <!-- !!TODO!! Remove Icon JAD entry if no icon is there --> |
||
46 | </wtkjad> |
||
47 | |||
48 | <wtkpackage |
||
49 | jarfile="${bin_dir}/${basename}.jar" |
||
50 | jadfile="${bin_dir}/${basename}.jad" |
||
51 | basedir="${build_dir}/classes" |
||
52 | manifest="${build_dir}/MANIFEST.MF" |
||
53 | obfuscate="true" |
||
54 | preverify="true"> |
||
55 | <fileset dir="${res_dir}/"> |
||
56 | <include name="*"/> |
||
57 | </fileset> |
||
58 | </wtkpackage> |
||
59 | |||
60 | |||
61 | </target> |
||
62 | |||
63 | |||
64 | <target name="clean"> |
||
65 | <delete dir="${build_dir}"/> |
||
66 | </target> |
||
67 | |||
68 | <target name="builddirs"> |
||
69 | <delete dir="${build_dir}"/> |
||
70 | <mkdir dir="${build_dir}"/> |
||
71 | <mkdir dir="${build_dir}/classes"/> |
||
72 | <mkdir dir="${build_dir}/bin"/> |
||
73 | </target> |
||
74 | |||
75 | |||
76 | </project> |