Mercurial > hg > human-echolocation-java-webapp
comparison build-isvr.xml @ 34:3fead3e53b4a
Split the build file in two: build.xml (default) and build-isvr.xml (which assumes you have the isvr.jar file avaiulable).
Changed the installation intructions accordingly.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Tue, 10 Dec 2013 18:43:20 +0000 |
parents | |
children | 6477743653d3 |
comparison
equal
deleted
inserted
replaced
33:f415cc429558 | 34:3fead3e53b4a |
---|---|
1 <project name="EchoWebApp" default="compile-matlab" basedir="."> | |
2 <description> | |
3 Builds the isvr.jar. | |
4 </description> | |
5 | |
6 <!-- set global properties for this build --> | |
7 <property name="matlab-src" location="mcode/human-echolocation"/> | |
8 <property name="matlab-build" location="scratch"/> | |
9 <property name="lib" location="WebContent/WEB-INF/lib"/> | |
10 | |
11 <uptodate property="matlabCompile.notRequired" targetfile="${matlab-build}/isvr.jar" > | |
12 <srcfiles dir= "${matlab-src}" includes="*.m"/> | |
13 <srcfiles dir= "${matlab-src}/private" includes="*.m"/> | |
14 </uptodate> | |
15 | |
16 <target name="init"> | |
17 <!-- Create the time stamp --> | |
18 <tstamp/> | |
19 <!-- Create the build directory structure used by compile --> | |
20 <mkdir dir="${matlab-build}"/> | |
21 </target> | |
22 | |
23 <target name="compile-matlab" depends="init" unless="matlabCompile.notRequired" | |
24 description="compile the MATLAB source" > | |
25 | |
26 <exec executable="/Applications/MATLAB_R2013b.app/bin/mcc"> | |
27 <!-- Will create the java package with the HumanEcho class --> | |
28 <arg line='-W "java:uk.ac.soton.isvr,HumanEcho" -d ${matlab-build} -T "link:lib" -v "class{HumanEcho:${matlab-src}/simulateBinauralSignals.m}"'/> | |
29 </exec> | |
30 | |
31 <!-- Copy the generated jar to the lib folder --> | |
32 <copy file="${matlab-build}/isvr.jar" tofile="${lib}/isvr.jar" overwrite="true" /> | |
33 </target> | |
34 | |
35 <target name="clean" description="clean up" > | |
36 <!-- Delete the ${build} and ${dist} directory trees --> | |
37 <delete dir="${build}"/> | |
38 </target> | |
39 </project> |