changeset 6:83e0c27b4dbc

Added property to check if the matlab files changed (only calling this task if there are any changes)
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Wed, 27 Nov 2013 17:58:27 +0000
parents ac4aa1922f32
children 81cbea09cc75
files build.xml
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/build.xml	Wed Nov 27 17:41:10 2013 +0000
+++ b/build.xml	Wed Nov 27 17:58:27 2013 +0000
@@ -7,8 +7,14 @@
   <property name="matlab-src" location="webapp/WEB-INF/mcode"/>
   <property name="matlab-build" location="scratch"/>
   <property name="lib" location="webapp/WEB-INF/lib"/>
+  <property name="compile-test" location="webapp/WEB-INF/lib"/>
+
   <property name="dist"  location="dist"/>
 
+  <uptodate property="matlabCompile.notRequired" targetfile="${matlab-build}/isvr.jar" >
+    <srcfiles dir= "${matlab-src}/" includes="*.m"/>
+  </uptodate>
+
   <target name="init">
     <!-- Create the time stamp -->
     <tstamp/>
@@ -16,7 +22,7 @@
     <mkdir dir="${matlab-build}"/>
   </target>
 
-  <target name="compile-matlab" depends="init"
+  <target name="compile-matlab" depends="init" unless="matlabCompile.notRequired"
     description="compile the MATLAB source" >
 
     <exec executable="/Applications/MATLAB_R2013b.app/bin/mcc">