aboutsummaryrefslogtreecommitdiffstats
path: root/weaver/build.xml
blob: ac52e5f13e311e4488985c8171385eb6b644d7c5 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?xml version="1.0"?>
<project name="weaver" default="all" basedir=".">

    <import file="../build/build-common.xml"/>
    <import file="../asm/build.xml"/>
    <import file="../runtime/build.xml"/>
    <import file="../util/build.xml"/>
    <import file="../testing-util/build.xml"/>

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

    <path id="weaver.src.path">
        <pathelement path="../asm/bin"/>
        <pathelement path="../bridge/bin"/>
        <pathelement path="../runtime/bin"/>
        <pathelement path="../util/bin"/>
        <fileset dir="${basedir}/../lib">
            <include name="bcel/*.jar"/>
        </fileset>
    </path>

    <target name="compile" depends="init,
                                    asm.compile,
                                    bridge.compile,
                                    runtime.compile,
                                    util.compile">
        <srccompile project="weaver" path="weaver.src.path"/>
        <!-- copy resources -->
        <copy todir="../weaver/bin">
            <fileset dir="../weaver/src" includes="**/*.properties"/>
        </copy>
    </target>

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

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

    <target name="jar" depends="compile">
        <delete file="${build.ajdir}/jars/weaver.jar"/>
        <copy file="weaver.mf.txt" todir="${build.ajdir}/temp" filtering="yes"/>
        <jar destfile="${build.ajdir}/jars/weaver.jar" manifest="${build.ajdir}/temp/weaver.mf.txt">
            <fileset dir="bin">
                <include name="**/*"/>
            </fileset>
        </jar>
    </target>
    <!-- FIXME av weaver-all needed ? -->

</project>