0009774: Smartbuild does not run update.database when required by the single record pattern feature merge
authorAsier Lostalé <asier.lostale@openbravo.com>
Tue, 07 Jul 2009 09:44:23 +0200
changeset 4288 1d9ad040a512
parent 4287 d3aa261a64fc
child 4289 e2aa45438b62
0009774: Smartbuild does not run update.database when required by the single record pattern feature merge

smartbuild compiled wad before updating database, this failed whenever there were new database elements that affected wad.
build.xml
--- a/build.xml	Mon Jul 06 23:26:21 2009 +0200
+++ b/build.xml	Tue Jul 07 09:44:23 2009 +0200
@@ -234,6 +234,14 @@
     <property name="smart.mode" value="true" />
     <property name="onlyIfModified" value="true" />
     <antcall target="core.lib" />
+    
+    <condition property="no.local">
+      <not>
+        <istrue value="${local}" />
+      </not>
+    </condition>
+    <antcall target="update.database.if.no.local" />
+    
     <antcall target="wad.lib" />
 
     <checksum file="${base.src.wad}/lib/openbravo-wad.jar" algorithm="MD5" property="test.md5.wad" />
@@ -245,14 +253,7 @@
     </condition>
 
     <antcall target="trl.lib" />
-
-
-    <condition property="no.local">
-      <not>
-        <istrue value="${local}" />
-      </not>
-    </condition>
-    <antcall target="update.database.if.no.local" />
+    
     <antcall inheritall="true" inheritrefs="true" target="generate.entities.quick" />
 
     <ant dir="${base.src}" target="smartbuild" inheritAll="true" inheritRefs="true" />