build.xml
changeset 3982 97e2fba62f90
parent 3976 1dbeb09b3b1f
child 3995 88e93b5b7c41
--- a/build.xml	Mon Jun 08 13:49:27 2009 +0200
+++ b/build.xml	Mon Jun 08 13:54:55 2009 +0200
@@ -542,7 +542,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" />
+    <antcall target="generate.entities" />
   </target>
 
   <target name="update.customized.database" depends="init,code.rev">
@@ -620,11 +620,17 @@
       <classpath refid="project.class.path" />
     </taskdef>
     <antcall target="update.database.mod" />
-    <applyModule userId="0" propertiesFile="${base.config}/Openbravo.properties" reinitializemodel="true" />
+    <!-- 
+    Note: set reinitializeModel to false because otherwise the dal is re-initialized with classes and a model
+    which are not in sync (see issue: https://issues.openbravo.com/view.php?id=9376)
+    Note: applyModule can also be moved to a java task to fork it (to prevent this from occuring)
+    but then no output is visible for the user.
+    -->
+    <applyModule userId="0" propertiesFile="${base.config}/Openbravo.properties" reinitializemodel="false"/>
     <antcall target="compile.deploy" />
     <!--antcall target="deploy.context"/-->
   </target>
-
+  
   <!-- 
 		apparently this does not overwrite the default catalina_opts, only
 		if it is not set will it be set to the value below