Tidyed up DAAP code to give better error reporting, and fixed a bug preventing multip...
[stereo.git] / CLI / build.xml
blob96440404ed9b53e4d0f6f9adc09504ad5750aa2d
1 <?xml version="1.0" encoding="UTF-8"?>
3 <!DOCTYPE project [
4        <!ENTITY common SYSTEM "../common.xml">
5 ]>
7 <project basedir="." default="build" name="CLI" xmlns:ivy="antlib:org.apache.ivy.ant">
9   <property name="DACPServer.location" value="../DACPServer"/>
10   <property name="MemphisDJ.location" value="../MemphisDJ"/>
12   &common;
14   <path id="DACPServer.classpath">
15     <pathelement location="${DACPServer.location}/bin"/>
16   </path>
17   <path id="MemphisDJ.classpath">
18     <pathelement location="${MemphisDJ.location}/bin"/>
19   </path>
20   <path id="CLI.classpath">
21     <pathelement location="bin"/>
22     <fileset dir="${lib.dir}">
23       <include name="**/*.jar"/>
24     </fileset>
25     <path refid="DACPServer.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="${DACPServer.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="CLI.classpath"/>
50     </javac>
51   </target>
53 </project>