Added regular volume polling
[stereo.git] / CLI / build.xml
blob6db6495c7017f9b8e32470c5925afaf3b9fbebcb
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- WARNING: Eclipse auto-generated file.
3      Any modifications will be overwritten.
4      To include a user specific buildfile here, simply create one in the same
5      directory with the processing instruction <?eclipse.ant.import?>
6      as the first entry and export the buildfile again. -->
7 <project basedir="." default="build" name="CLI" xmlns:ivy="antlib:org.apache.ivy.ant">
8   <property name="MemphisDJ.location" value="../MemphisDJ"/>
9   <property name="DAAPLib.location" value="../DAAPLib"/>
11   <property name="debuglevel" value="source,lines,vars"/>
13   <property name="target" value="1.5"/>
14   <property name="source" value="1.5"/>
16   <property name="ivy.install.version" value="2.0.0-beta2"/>
18   <path id="MemphisDJ.classpath">
19     <pathelement location="${MemphisDJ.location}/bin"/>
20   </path>
21   <path id="DAAPLib.classpath">
22     <pathelement location="${DAAPLib.location}/bin"/>
23     <path refid="MemphisDJ.classpath"/>
24   </path>
25   <path id="CLI.classpath">
26     <pathelement location="bin"/>
27     <fileset dir="lib">
28       <include name="**/*.jar"/>
29     </fileset>
30     <path refid="DAAPLib.classpath"/>
31     <path refid="MemphisDJ.classpath"/>
32   </path>
34   <target name="init">
35     <mkdir dir="bin"/>
36     <copy includeemptydirs="false" todir="bin">
37       <fileset dir="src" excludes="**/*.launch, **/*.java"/>
38     </copy>
39     <copy includeemptydirs="false" todir="bin">
40       <fileset dir="test" excludes="**/*.launch, **/*.java"/>
41     </copy>
42   </target>
43   <target name="clean">
44     <delete dir="bin"/>
45   </target>
46   <target depends="clean" name="cleanall">
47     <ant antfile="${MemphisDJ.location}/build.xml" inheritAll="false" target="clean"/>
48     <ant antfile="${DAAPLib.location}/build.xml" inheritAll="false" target="clean"/>
49   </target>
50   <target depends="build-subprojects,build-project" name="build">
51     <echo file="run.sh" message="#!/bin/sh${line.separator}${line.separator}${java.home}/bin/java -cp ${toString:CLI.classpath} clinterface.CLI $* ${line.separator}" />
52     <exec executable="chmod">
53       <arg line="755 run.sh"/>
54     </exec>
55   </target>
57   <target name="build-subprojects">
58     <ant antfile="${MemphisDJ.location}/build.xml" inheritAll="false" target="build-project"/>
59     <ant antfile="${DAAPLib.location}/build.xml" inheritAll="false" target="build-project"/>
60   </target>
61   <target depends="init" name="build-project">
62     <echo message="${ant.project.name}: ${ant.file}"/>
63     <javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}">
64       <src path="src"/>
65       <classpath refid="CLI.classpath"/>
66     </javac>
67     <javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}">
68       <src path="test"/>
69       <classpath refid="CLI.classpath"/>
70     </javac>
71   </target>
72   <target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"/>
73   <target name="CLI">
74     <java classname="clinterface.CLI" failonerror="true" fork="yes">
75       <arg line="${args}"/>
76       <classpath refid="CLI.classpath"/>
77     </java>
78   </target>
79   <target name="CLITest">
80     <java classname="cli.CLITest" failonerror="true" fork="yes">
81       <classpath refid="CLI.classpath"/>
82     </java>
83   </target>
84 </project>