aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/build.xml
blob: 3dd22e1ed40f11c53b84140c55afe1ef9adbf38f (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
39
40
41
<?xml version="1.0"?>
<project name="runtime" default="all" basedir=".">

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

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

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

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

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

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

    <target name="all" depends="init, compile, test:compile"/>

    <target name="jar" depends="compile">
        <delete file="${build.ajdir}/jars/runtime.jar"/>
        <copy file="runtime.mf.txt" todir="${build.ajdir}/temp" filtering="yes"/>
        <jar destfile="${build.ajdir}/jars/runtime.jar" manifest="${build.ajdir}/temp/runtime.mf.txt">
            <fileset dir="bin">
                <include name="**/*"/>
            </fileset>
        </jar>
    </target>

</project>