Mercurial > hg > human-echolocation-java-webapp
view 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 |
line wrap: on
line source
<project name="EchoWebApp" default="compile-matlab" basedir="."> <description> Builds the isvr.jar. </description> <!-- set global properties for this build --> <property name="matlab-src" location="mcode"/> <property name="matlab-build" location="scratch"/> <property name="lib" location="WebContent/WEB-INF/lib"/> <uptodate property="matlabCompile.notRequired" targetfile="${matlab-build}/isvr.jar" > <srcfiles dir= "${matlab-src}" includes="*.m"/> <srcfiles dir= "${matlab-src}/private" includes="*.m"/> </uptodate> <target name="init"> <!-- Create the time stamp --> <tstamp/> <!-- Create the build directory structure used by compile --> <mkdir dir="${matlab-build}"/> </target> <target name="compile-matlab" depends="init" unless="matlabCompile.notRequired" description="compile the MATLAB source" > <exec executable="/Applications/MATLAB_R2013b.app/bin/mcc"> <!-- Will create the java package with the HumanEcho class --> <arg line='-W "java:uk.ac.soton.isvr,HumanEcho" -d ${matlab-build} -T "link:lib" -v "class{HumanEcho:${matlab-src}/simulateBinauralSignals.m}"'/> </exec> <!-- Copy the generated jar to the lib folder --> <copy file="${matlab-build}/isvr.jar" tofile="${lib}/isvr.jar" overwrite="true" /> </target> <target name="clean" description="clean up" > <!-- Delete the ${build} and ${dist} directory trees --> <delete dir="${build}"/> </target> </project>