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