Mercurial > hg > human-echolocation-java-webapp
view build-isvr.xml @ 35:b32c3bd9eb89
removed the javabuilder jar (not necessary - should be copied either from the MCR or the MATLAB folder; removed some dependency checking from the build file; added some instructions file.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Tue, 10 Dec 2013 22:05:19 +0000 |
parents | 3fead3e53b4a |
children | 6477743653d3 |
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/human-echolocation"/> <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>