File: build.xml

package info (click to toggle)
kamailio 4.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 56,100 kB
  • sloc: ansic: 552,832; xml: 166,484; sh: 8,659; makefile: 7,676; sql: 6,235; perl: 3,487; yacc: 3,428; python: 1,457; cpp: 1,219; php: 1,047; java: 449; pascal: 194; cs: 40; awk: 27
file content (46 lines) | stat: -rw-r--r-- 1,361 bytes parent folder | download | duplicates (18)
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
<project name="Kamailio Examples" default="all">

    <target name="all" description="Do the entire build" depends="clean,siprouter_compile,kamailio.jar,main_compile" >
	<echo>Building Kamailio examples</echo>
    </target>

    <target name="make.dirs" description="Make a dir">
	<mkdir dir="build"/>
    </target>

    <target name="kamailio.jar" description="make jar file" depends="siprouter_compile">
	<jar destfile="kamailio.jar">
    	    <fileset dir="build" includes="**">
        	<include name="**/*.class"/>
                <exclude name="**/CVS"/>
                <exclude name="**/.svn"/>
                <exclude name="**/.git"/>
            </fileset>
        </jar>
    </target>

    <target name="siprouter_compile" description="compile java"  depends="make.dirs">
	<javac destdir="build" includeantruntime="false">
    	    <src path="siprouter_src/"/>
        </javac>
    </target>

    <target name="main_compile" description="compile java">
	<javac destdir="." includeantruntime="false" includes="**.java">
    	    <src path="."/>
	    <classpath>
		<pathelement path="."/>
		<pathelement location="kamailio.jar"/>
	    </classpath>
        </javac>
    </target>



    <target name="clean" description="Clean up">
        <delete dir="build"/>
	<delete file="kamailio.jar"/>
	<delete file="Kamailio.class"/>
    </target>

</project>