[newupgrade] update.database.mod will now be forked.
authorAntonio Moreno <antonio.moreno@openbravo.com>
Wed, 04 Nov 2009 15:16:11 +0100
changeset 5596 5c76f4704f10
parent 5595 212a593a0730
child 5597 9fa1f7044ea9
[newupgrade] update.database.mod will now be forked.
build.xml
src-db/database/build.xml
--- a/build.xml	Wed Nov 04 12:59:17 2009 +0100
+++ b/build.xml	Wed Nov 04 15:16:11 2009 +0100
@@ -561,7 +561,7 @@
   <target name="update.database.mod" depends="init,code.rev">
     <antcall target="database.lib" />
     <antcall target="core.lib" />
-    <ant dir="${base.db}" target="update.database.mod" inheritAll="true" inheritRefs="true" />
+    <ant dir="${base.db}" target="update.database.mod.java" inheritAll="true" inheritRefs="true" />
   </target>
 
   <target name="update.customized.database" depends="init,code.rev">
--- a/src-db/database/build.xml	Wed Nov 04 12:59:17 2009 +0100
+++ b/src-db/database/build.xml	Wed Nov 04 15:16:11 2009 +0100
@@ -154,11 +154,40 @@
     <antcall target="update.dbupdate.timestamp" />
   </target>
 
+  <target name="update.database.mod.java">
+    <java classname="org.openbravo.ddlutils.task.AlterDatabaseModJava" failonerror="true" fork="true" maxmemory="${build.maxmemory}">
+      <arg value="${bbdd.driver}"/>
+      <arg value="${bbdd.owner.url}"/>
+      <arg value="${bbdd.user}"/>
+      <arg value="${bbdd.password}"/>
+      <arg value="com.openbravo.db.OpenbravoExcludeFilter"/>
+      <arg value="model"/>
+      <arg value="com.openbravo.db.OpenbravoMetadataFilter"/>
+      <arg value="sourcedata"/>
+      <arg value="${bbdd.object}"/>
+      <arg value="false"/>
+      <arg value="${bbdd.verbosity}"/>
+      <arg value="${base.modules}/"/>
+      <arg value="${base.config}/"/>
+      <arg value="*/src-db/database/model"/>
+      <arg value="${base.modules}/"/>
+      <arg value="*/src-db/database/sourcedata"/>
+      <arg value="${module}"/>
+      <arg value="0"/>
+      <arg value="${base.config}/Openbravo.properties"/>
+      <arg value="${force}"/>
+      <classpath refid="runtime-classpath" />
+    </java>
+    <antcall target="database.postupdate.${bbdd.rdbms}" />
+    <antcall target="update.dbupdate.timestamp" />
+  </target>
+  
   <target name="update.database.mod">
     <alterdatabasedatamod driver="${bbdd.driver}" url="${bbdd.owner.url}" user="${bbdd.user}" password="${bbdd.password}" excludeobjects="com.openbravo.db.OpenbravoExcludeFilter" model="model" filter="com.openbravo.db.OpenbravoMetadataFilter" input="sourcedata" object="${bbdd.object}" failonerror="false" verbosity="DEBUG" basedir="${base.modules}/" baseConfig="${base.config}" dirFilter="*/src-db/database/model" datadir="${base.modules}/" dataFilter="*/src-db/database/sourcedata" module="${module}" userId="0" propertiesFile="${base.config}/Openbravo.properties" force="${force}" />
     <antcall target="database.postupdate.${bbdd.rdbms}" />
     <antcall target="update.dbupdate.timestamp" />
   </target>
+  
   <target name="clean.database.ORACLE">
     <sql driver="${bbdd.driver}" url="${bbdd.url}" userid="${bbdd.systemUser}" password="${bbdd.systemPassword}" onerror="continue">
       <classpath>