updated build files
[stereo.git] / DACPServer / build.xml
blobe9f54e72a02b5c362930f5fbeb450424921eddbb
1 <?xml version="1.0" encoding="UTF-8"?>
3 <!DOCTYPE project [
4        <!ENTITY common SYSTEM "../common.xml">
5 ]>
7 <project basedir="." default="build" name="DACPServer" xmlns:ivy="antlib:org.apache.ivy.ant">
9   <property name="Asunder.location" value="../Asunder"/>
10   <property name="MemphisDJ.location" value="../MemphisDJ"/>
12   &common;
14   <path id="Asunder.classpath">
15     <pathelement location="${Asunder.location}/bin"/>
16   </path>
17   <path id="MemphisDJ.classpath">
18     <pathelement location="${MemphisDJ.location}/bin"/>
19   </path>
20   <path id="DACPServer.classpath">
21     <pathelement location="bin"/>
22     <fileset dir="${lib.dir}">
23       <include name="**/*.jar"/>
24     </fileset>
25     <path refid="Asunder.classpath"/>
26     <path refid="MemphisDJ.classpath"/>
27   </path>
29   <target name="init" depends="resolve">
30     <mkdir dir="bin"/>
31     <copy includeemptydirs="false" todir="bin">
32       <fileset dir="src" excludes="**/*.java"/>
33     </copy>
34   </target>
36   <target name="clean">
37     <delete dir="bin"/>
38   </target>
40   <target name="build-subprojects">
41     <ant antfile="${Asunder.location}/build.xml" inheritAll="false" target="build"/>
42     <ant antfile="${MemphisDJ.location}/build.xml" inheritAll="false" target="build"/>
43   </target>
45   <target depends="init" name="build-project">
46     <echo message="${ant.project.name}: ${ant.file}"/>
47     <javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}">
48       <src path="src"/>
49       <classpath refid="DACPServer.classpath"/>
50     </javac>
51     <javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}">
52       <src path="test"/>
53       <classpath refid="DACPServer.classpath"/>
54     </javac>
55   </target>
57 </project>