File: build.xml

package info (click to toggle)
openhpi 3.8.0-2.3
  • links: PTS
  • area: main
  • in suites: sid, trixie
  • size: 31,888 kB
  • sloc: ansic: 225,326; cpp: 63,687; java: 16,472; cs: 15,161; python: 11,884; sh: 11,508; makefile: 4,945; perl: 1,529; xml: 36; asm: 13
file content (44 lines) | stat: -rw-r--r-- 1,307 bytes parent folder | download | duplicates (4)
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
<project name="OpenHPI" default="all">
    <target name="all" depends="example:compile,example_handlers:compile,example_collections:compile"/>

    <target name="example:compile" depends="openhpi_baselib:jar">
        <javac destdir="build">
            <src path="example"/>
        </javac>
    </target>

    <target name="example_handlers:compile" depends="openhpi_baselib:jar">
        <javac destdir="build">
            <src path="example_handlers"/>
        </javac>
    </target>

    <target name="example_collections:compile" depends="openhpi_baselib:jar">
        <javac destdir="build">
            <src path="example_collections"/>
        </javac>
    </target>

    <target name="openhpi_baselib:jar" depends="openhpi_baselib:compile">
        <jar destfile="build/openhpi_baselib.jar" manifest="openhpi_baselib/manifest.txt" >
            <fileset dir="build">
                <include name="org/openhpi/*.class"/>
            </fileset>
        </jar>
    </target>

    <target name="openhpi_baselib:compile" depends="prepare">
        <javac destdir="build">
            <src path="openhpi_baselib"/>
        </javac>
    </target>

    <target name="prepare">
        <mkdir dir="build"/>
    </target>

    <target name="clean">
        <delete dir="build"/>
    </target>
</project>