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"/>
21 <path id="DAAPLib.classpath">
22 <pathelement location="${DAAPLib.location}/bin"/>
23 <path refid="MemphisDJ.classpath"/>
25 <path id="CLI.classpath">
26 <pathelement location="bin"/>
28 <include name="**/*.jar"/>
30 <path refid="DAAPLib.classpath"/>
31 <path refid="MemphisDJ.classpath"/>
36 <copy includeemptydirs="false" todir="bin">
37 <fileset dir="src" excludes="**/*.launch, **/*.java"/>
39 <copy includeemptydirs="false" todir="bin">
40 <fileset dir="test" excludes="**/*.launch, **/*.java"/>
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"/>
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"/>
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"/>
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}">
65 <classpath refid="CLI.classpath"/>
67 <javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}">
69 <classpath refid="CLI.classpath"/>
72 <target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"/>
74 <java classname="clinterface.CLI" failonerror="true" fork="yes">
76 <classpath refid="CLI.classpath"/>
79 <target name="CLITest">
80 <java classname="cli.CLITest" failonerror="true" fork="yes">
81 <classpath refid="CLI.classpath"/>