Fixed issue 8778. Now neither smartbuild nor update.database nor update.database.mod will attempt to execute generate.entities.light. This should hopefully fix the problem when trying to upgrade to a version of Openbravo whose DAL classes have been changed.
authorAntonio Moreno <antonio.moreno@openbravo.com>
Tue, 28 Apr 2009 17:34:00 +0200
changeset 3746 679da9c6ff4a
parent 3745 a993c3fc5af5
child 3747 5dc324b8fb7d
Fixed issue 8778. Now neither smartbuild nor update.database nor update.database.mod will attempt to execute generate.entities.light. This should hopefully fix the problem when trying to upgrade to a version of Openbravo whose DAL classes have been changed.
build.xml
--- a/build.xml	Tue Apr 28 17:09:27 2009 +0200
+++ b/build.xml	Tue Apr 28 17:34:00 2009 +0200
@@ -250,8 +250,8 @@
         <istrue value="${local}" />
       </not>
     </condition>
+    <antcall target="update.database.if.no.local" />
     <antcall inheritall="true" inheritrefs="true" target="generate.entities.quick" />
-    <antcall target="update.database.if.no.local" />
 
     <ant dir="${base.src}" target="smartbuild" inheritAll="true" inheritRefs="true" />
 
@@ -507,7 +507,7 @@
     <antcall target="db.apply.modules.sampledata" />
   </target>
 
-  <target name="update.database" depends="init,code.rev,generate.entities.quick">
+  <target name="update.database" depends="init,code.rev">
     <antcall target="database.lib" />
     <antcall target="core.lib" />
     <ant dir="${base.db}" target="update.database" inheritAll="true" inheritRefs="true" />
@@ -520,6 +520,7 @@
     <antcall target="core.lib" />
     <ant dir="${base.db}" target="update.database.mod" inheritAll="true" inheritRefs="true" />
     <antcall target="db.apply.modules" />
+    <antcall target="generate.entities.quick" />
   </target>
 
   <target name="update.customized.database" depends="init,code.rev">