Added build file (for ant) with the compile-matlab target (still with my filesystem's local paths).
author |
luisf <luis.figueira@eecs.qmul.ac.uk> |
date |
Wed, 27 Nov 2013 12:09:16 +0000 |
parents |
|
children |
747ae11a8af8 |
rev |
line source |
luis@1
|
1 <project name="EchoWebApp" default="compile-matlab" basedir=".">
|
luis@1
|
2 <description>
|
luis@1
|
3 Simple build file for the EchoLocation WebApp.
|
luis@1
|
4 </description>
|
luis@1
|
5
|
luis@1
|
6 <!-- set global properties for this build -->
|
luis@1
|
7 <property name="matlab_src" location="webapp/WEB-INF/mcode/"/>
|
luis@1
|
8 <property name="build" location="scratch"/>
|
luis@1
|
9 <property name="dist" location="dist"/>
|
luis@1
|
10
|
luis@1
|
11 <target name="init">
|
luis@1
|
12 <!-- Create the time stamp -->
|
luis@1
|
13 <tstamp/>
|
luis@1
|
14 <!-- Create the build directory structure used by compile -->
|
luis@1
|
15 <mkdir dir="${build}"/>
|
luis@1
|
16 </target>
|
luis@1
|
17
|
luis@1
|
18
|
luis@1
|
19 <target name="compile-matlab" depends="init"
|
luis@1
|
20 description="compile the MATLAB source" >
|
luis@1
|
21 <exec executable="/Applications/MATLAB_R2013b.app/bin/mcc">
|
luis@1
|
22 <!-- Will create the java package with the HumanEcho class -->
|
luis@1
|
23 <arg value='-W "java:uk.ac.soton.isvr,HumanEcho" -d ${build} -T "link:lib" -v "class{HumanEcho:./webapp/WEB-INF/mcode/gen_echo.m}"'/>
|
luis@1
|
24 </exec>
|
luis@1
|
25 </target>
|
luis@1
|
26
|
luis@1
|
27 <target name="dist" depends="compile-matlab"
|
luis@1
|
28 description="generate the distribution" >
|
luis@1
|
29 <!-- Create the distribution directory -->
|
luis@1
|
30 <mkdir dir="${dist}/lib"/>
|
luis@1
|
31
|
luis@1
|
32 <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
luis@1
|
33 <jar jarfile="${dist}/lib/MyProject-${DSTAMP}.jar" basedir="${build}"/>
|
luis@1
|
34 </target>
|
luis@1
|
35
|
luis@1
|
36 <target name="clean"
|
luis@1
|
37 description="clean up" >
|
luis@1
|
38 <!-- Delete the ${build} and ${dist} directory trees -->
|
luis@1
|
39 <delete dir="${build}"/>
|
luis@1
|
40 <delete dir="${dist}"/>
|
luis@1
|
41 </target>
|
luis@1
|
42 </project> |