core, lib, modules: restructured source code tree
[sip-router] / src / modules / app_java / kamailio_java_folder / java-untested / build.xml
1 <project name="Kamailio Examples" default="all">
2
3     <target name="all" description="Do the entire build" depends="clean,siprouter_compile,kamailio.jar,main_compile" >
4         <echo>Building Kamailio examples</echo>
5     </target>
6
7     <target name="make.dirs" description="Make a dir">
8         <mkdir dir="build"/>
9     </target>
10
11     <target name="kamailio.jar" description="make jar file" depends="siprouter_compile">
12         <jar destfile="kamailio.jar">
13             <fileset dir="build" includes="**">
14                 <include name="**/*.class"/>
15                 <exclude name="**/CVS"/>
16                 <exclude name="**/.svn"/>
17                 <exclude name="**/.git"/>
18             </fileset>
19         </jar>
20     </target>
21
22     <target name="siprouter_compile" description="compile java"  depends="make.dirs">
23         <javac destdir="build" includeantruntime="false">
24             <src path="siprouter_src/"/>
25         </javac>
26     </target>
27
28     <target name="main_compile" description="compile java">
29         <javac destdir="." includeantruntime="false" includes="**.java">
30             <src path="."/>
31             <classpath>
32                 <pathelement path="."/>
33                 <pathelement location="kamailio.jar"/>
34             </classpath>
35         </javac>
36     </target>
37
38
39
40     <target name="clean" description="Clean up">
41         <delete dir="build"/>
42         <delete file="kamailio.jar"/>
43         <delete file="Kamailio.class"/>
44     </target>
45
46 </project>