aboutsummaryrefslogtreecommitdiffstats
path: root/loadtime/build.xml
blob: dbdfa8ef663eb7f0ddccb7988404472972b928cc (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="loadtime" default="all" basedir=".">

    <import file="../build/build-common.xml"/>
    <import file="../asm/build.xml"/>
    <import file="../bridge/build.xml"/>
    <import file="../util/build.xml"/>
    <import file="../weaver/build.xml"/>


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

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

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

    <target name="test:compile" depends="compile">
        <testcompile project="loadtime" path="loadtime.src.path"/>
        <!-- copy resources -->
        <copy todir="../loadtime/bin">
            <fileset dir="../loadtime/testsrc" includes="**/*.xml"/>
        </copy>
    </target>

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

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

</project>