aboutsummaryrefslogtreecommitdiffstats
path: root/util/build.xml
blob: 7618057ab16352a260db758dbc349d5fe84f533e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?xml version="1.0"?>
<project name="util" default="all" basedir=".">

    <import file="../build/build-common.xml"/>

    <path id="util.test.src.path">
        <path refid="util.src.path"/>
        <fileset dir="${basedir}/../lib">
            <include name="junit/*.jar"/>
        </fileset>
    </path>

    <path id="util.src.path">
    </path>

    <target name="compile" depends="init">
        <srccompile project="util" path="util.src.path"/>
    </target>

    <target name="test:compile" depends="compile">
        <testcompile project="util" path="util.test.src.path"/>
    </target>

    <target name="test" depends="test:compile">
        <testrun project="util" path="util.test.src.path" suite="UtilModuleTests"/>
    </target>

    <target name="jar" depends="compile">
        <delete file="${build.ajdir}/jars/util.jar"/>
        <zip destfile="${build.ajdir}/jars/util.jar">
            <fileset dir="bin">
                <include name="**/*"/>
            </fileset>
        </zip>
    </target>

</project>