annotate build-isvr.xml @ 67:b8f8ed1ef8dd tip

Provide .wav suffix in delivered filename
author Chris Cannam
date Tue, 30 Sep 2014 16:52:50 +0100
parents 6477743653d3
children
rev   line source
luis@34 1 <project name="EchoWebApp" default="compile-matlab" basedir=".">
luis@34 2 <description>
luis@34 3 Builds the isvr.jar.
luis@34 4 </description>
luis@34 5
luis@34 6 <!-- set global properties for this build -->
Chris@52 7 <property name="matlab-src" location="mcode"/>
luis@34 8 <property name="matlab-build" location="scratch"/>
luis@34 9 <property name="lib" location="WebContent/WEB-INF/lib"/>
luis@34 10
luis@34 11 <uptodate property="matlabCompile.notRequired" targetfile="${matlab-build}/isvr.jar" >
luis@34 12 <srcfiles dir= "${matlab-src}" includes="*.m"/>
luis@34 13 <srcfiles dir= "${matlab-src}/private" includes="*.m"/>
luis@34 14 </uptodate>
luis@34 15
luis@34 16 <target name="init">
luis@34 17 <!-- Create the time stamp -->
luis@34 18 <tstamp/>
luis@34 19 <!-- Create the build directory structure used by compile -->
luis@34 20 <mkdir dir="${matlab-build}"/>
luis@34 21 </target>
luis@34 22
luis@34 23 <target name="compile-matlab" depends="init" unless="matlabCompile.notRequired"
luis@34 24 description="compile the MATLAB source" >
luis@34 25
luis@34 26 <exec executable="/Applications/MATLAB_R2013b.app/bin/mcc">
luis@34 27 <!-- Will create the java package with the HumanEcho class -->
luis@34 28 <arg line='-W "java:uk.ac.soton.isvr,HumanEcho" -d ${matlab-build} -T "link:lib" -v "class{HumanEcho:${matlab-src}/simulateBinauralSignals.m}"'/>
luis@34 29 </exec>
luis@34 30
luis@34 31 <!-- Copy the generated jar to the lib folder -->
luis@34 32 <copy file="${matlab-build}/isvr.jar" tofile="${lib}/isvr.jar" overwrite="true" />
luis@34 33 </target>
luis@34 34
luis@34 35 <target name="clean" description="clean up" >
luis@34 36 <!-- Delete the ${build} and ${dist} directory trees -->
luis@34 37 <delete dir="${build}"/>
luis@34 38 </target>
luis@34 39 </project>