diff java/build.xml @ 27:f79bef1687c5

separated some tasks in build.xml
author Robert McIntyre <rlm@mit.edu>
date Sat, 19 Nov 2011 19:25:21 -0700
parents 56f83c170251
children
line wrap: on
line diff
     1.1 --- a/java/build.xml	Sat Nov 19 19:17:37 2011 -0700
     1.2 +++ b/java/build.xml	Sat Nov 19 19:25:21 2011 -0700
     1.3 @@ -1,4 +1,4 @@
     1.4 -<project name="audio-send" default="linux64dist" basedir="."> 
     1.5 +<project name="audio-send" default="dist" basedir="."> 
     1.6  
     1.7  
     1.8    <property name="build" value="build"/>
     1.9 @@ -12,6 +12,8 @@
    1.10    <target name="prepare">
    1.11      <mkdir dir="${build}"/>
    1.12      <mkdir dir="${headers}"/>
    1.13 +    <mkdir dir="${dist}"/> 
    1.14 +    <mkdir dir="${native}"/>
    1.15    </target>
    1.16  
    1.17    <target name="compile" depends="prepare" >
    1.18 @@ -26,10 +28,14 @@
    1.19  	   />
    1.20    </target>
    1.21  
    1.22 +  <target name="dist">
    1.23 +    <jar jarfile="${dist}/audio-send.jar">
    1.24 +      <fileset dir="${build}"/>
    1.25 +      <fileset dir="${src}"/>
    1.26 +    </jar>
    1.27 +  </target>
    1.28 +
    1.29    <target name="linux64dist" depends="compile, native" >
    1.30 -    <mkdir dir="${dist}"/> 
    1.31 -    <jar jarfile="${dist}/audio-send.jar" basedir="${build}"/>
    1.32 -    <mkdir dir="${native}"/>
    1.33      <copy file="../build/libopenal.so.1.13.0"
    1.34  	  tofile="${native}/libopenal64.so"/>
    1.35      <jar jarfile="${dist}/audio-send-natives.jar"