summaryrefslogtreecommitdiffstats
path: root/java/MyMyBatis/build.xml
blob: 4d17c6c8e53bc99684417afdfcc597a6a8c07a76 (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
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:ivy="antlib:org.apache.ivy.ant"
    name="MyMyBatis"
    basedir="."
    default="test">

    <target name="resolve" description="retrieve dependencies with Ivy">
        <ivy:resolve file="ivy.xml" log="download-only"/>
        <ivy:cachepath pathid="ivy.deps.default" conf="default" />
    </target>

    <target name="compile" depends="resolve">
        <mkdir dir="./build" />
        <javac srcdir="./src"
            destdir="./build"
            includeantruntime="false">
            <classpath refid="ivy.deps.default"/>
            <compilerarg value="-Xlint:all"/>
            <compilerarg value="-Xlint:-processing"/>
        </javac>
    </target>

    <target name="test" depends="compile">
        <java classname="ch.asynk.Main" fork="true">
            <classpath>
                <dirset dir="./src"/>
                <dirset dir="./build"/>
            </classpath>
            <classpath refid="ivy.deps.default"/>
        </java>
    </target>

</project>