Subversion Repositories Projects

Rev

Rev 316 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 316 Rev 531
Line 1... Line 1...
1
<project name="DUBwiseInstaller" basedir=".">
1
<project name="DUBwiseInstaller" basedir="." default="build">
2
        <property name="wtk.home" value="/home/ligi/tools/WTK2.2/"/>
2
        <property name="wtk.home" value="/home/ligi/tools/WTK2.2/"/>
3
 
3
 
-
 
4
        <!-- jar filename -->
4
        <property name="project_name" value="DUBwiseInstaller"/>                            <!-- jar filename -->
5
        <property name="project_name" value="DUBwiseInstaller"/>
5
 
6
 
6
        <property name="project_version" value="0.7"/>          
7
        <property name="project_version" value="0.8"/>          
7
 
8
 
8
        <property name="res_dir" location="res"/>
9
        <property name="res_dir" location="res"/>
9
        <property name="build_dir" location="${basedir}/build/"/>
10
        <property name="build_dir" location="${basedir}/build/"/>
10
        <property name="bin_dir" location="${basedir}/bin/"/>
11
        <property name="bin_dir" location="${basedir}/bin/"/>
11
 
12
 
12
        <property name="lib_dir" location="${basedir}/lib/"/>
13
        <property name="lib_dir" location="${basedir}/lib/"/>
13
        <property name="src_dir" location="${basedir}/src/"/>
14
        <property name="src_dir" location="${basedir}/src/"/>
14
 
15
 
15
        <property name="basename" value="${project_name}"/>
16
        <property name="basename" value="${project_name}"/>
16
 
17
 
17
 
-
 
18
        <echo >
-
 
19
${build_dir}
-
 
20
${basename}
-
 
21
</echo>
-
 
22
       
-
 
23
        <taskdef resource="antenna.properties"  classpath="${lib_dir}/antenna.jar"/>
18
        <taskdef resource="antenna.properties"  classpath="${lib_dir}/antenna.jar"/>
24
 
19
 
25
        <property name="wtk.midp.version" value="2.0"/>
20
        <property name="wtk.midp.version" value="1.0"/>
26
        <property name="wtk.cldc.version" value="1.0"/>
21
        <property name="wtk.cldc.version" value="1.0"/>
27
 
22
 
28
        <property name="wtk.midpapi" value="${lib_dir}/classes.zip"/>  
23
        <property name="wtk.midpapi" value="${lib_dir}/classes.zip"/>  
29
       
24
       
30
        <target name="build" depends="builddirs">
25
        <target name="build" depends="cleaner,builddirs">
31
 
26
 
32
                <wtkbuild destdir="${build_dir}/classes" srcdir="${src_dir}" target="1.1" preverify="false"/>
27
                <wtkbuild destdir="${build_dir}/classes" srcdir="${src_dir}" target="1.1" preverify="false"/>
33
                <wtkjad
28
                <wtkjad
34
                       jadfile="${bin_dir}/${basename}.jad"
29
                       jadfile="${bin_dir}/${basename}.jad"
35
                       jarfile="${bin_dir}/${basename}.jar"
30
                       jarfile="${bin_dir}/${basename}.jar"
Line 63... Line 58...
63
       
58
       
64
        <target name="clean">
59
        <target name="clean">
65
                <delete dir="${build_dir}"/>
60
                <delete dir="${build_dir}"/>
66
        </target>
61
        </target>
67
 
62
 
68
        <target name="builddirs">
63
        <target name="cleaner">
69
                <delete dir="${build_dir}"/>
64
                <delete dir="${build_dir}"/>
-
 
65
                <delete file="${bin_dir}/*.ja*"/>
-
 
66
        </target>
-
 
67
 
-
 
68
        <target name="builddirs">
-
 
69
                <delete dir="${build_dir}"/>
-
 
70
 
70
                <mkdir dir="${build_dir}"/>
71
                <mkdir dir="${build_dir}"/>
71
                <mkdir dir="${build_dir}/classes"/>
72
                <mkdir dir="${build_dir}/classes"/>
72
                <mkdir dir="${build_dir}/bin"/>
73
                <mkdir dir="${build_dir}/bin"/>
73
        </target>
74
        </target>
74
       
75