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