sf-package/build.xml
changeset 319 257557b39754
parent 184 f50ee414b574
child 323 5c33f37d47a4
--- a/sf-package/build.xml	Thu Jul 16 16:33:38 2009 +0100
+++ b/sf-package/build.xml	Mon Jul 20 10:43:39 2009 +0100
@@ -13,6 +13,16 @@
   <import file="${sf.package.config.dir}/package_refs.ant.xml" />
   
   <target name="sf-compile">
+  
+    <!-- Check that package_definition is not in v 3.0.0 otherwise transforms it to 2.0.1 -->
+    <echo message="Check that model file is in a version usable by Raptor"/>
+    <exec executable="perl" dir="${sf.common.config.dir}/sysdefdowngrade" failonerror="false" output="${build.log.dir}/sysdefdowngrade.log">
+      <arg value="sysdefdowngrade.pl"/>
+      <arg value="--model=${build.drive}/${sf.spec.systemdefinition.location}"/>
+      <arg value="--sources=${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/>
+    </exec>
+        
+        
     <runtarget target="sf-package-compile"/>
   </target>