added eclipse files for JNode-Sound project
[jnode:svn-mirror.git] / sound / build.xml
1 <project name="JNode-Sound" default="all" basedir=".">
2
3   <typedef file="${basedir}/../all/lib/jnode.xml"/>
4                                 
5   <property name="my-build.dir"   value="${basedir}/build"/>
6   <property name="my-classes.dir" value="${my-build.dir}/classes"/>
7   <property name="my-src.dir"     value="${basedir}/src"/>
8   <property name="my.jar"         value="${jnode-sound.jar}"/>
9
10 <!-- Subproject specific classpath -->
11   <path id="my-cp">
12     <pathelement location="${jnode-core.jar}"/>
13     <path refid="cp"/>
14   </path>
15
16 <!-- Initialize all subproject directories -->
17   <target name="prepare">
18     <mkdir dir="${my-classes.dir}"/>
19         <jnode.copy-descriptors/>
20     <copy todir="${my-classes.dir}">
21       <fileset dir="${my-src.dir}/sound" excludes="**/*.java,**/package.html"/>
22     </copy>
23   </target>
24
25 <!-- Compile all subproject java files -->
26   <target name="compile" depends="prepare">
27     <jnode.compile>
28         <src path="${my-src.dir}/driver"/>
29         <src path="${my-src.dir}/sound"/>
30         <src path="${my-src.dir}/test"/>
31       <classpath refid="my-cp"/>
32     </jnode.compile>
33   </target>
34
35 <!-- Assemble the jarfile -->
36   <target name="assemble" depends="compile"/>
37
38 <!-- Do it all -->
39   <target name="all" depends="assemble"/>
40
41 <!-- Clean everything -->
42   <target name="clean">
43         <jnode.clean/>
44   </target>
45
46 </project>