Added new apply.on.update property. This will be used on update.database instead of apply.on.create, and will be defaulted to true
authorAntonio Moreno <antonio.moreno@openbravo.com>
Wed, 10 Feb 2010 16:01:16 +0100
changeset 6108 5fc1b601464c
parent 6107 2f32c81696b7
child 6109 73a8794c3b1c
child 6233 b68706f95ef8
Added new apply.on.update property. This will be used on update.database instead of apply.on.create, and will be defaulted to true
build.xml
--- a/build.xml	Wed Feb 10 15:42:43 2010 +0100
+++ b/build.xml	Wed Feb 10 16:01:16 2010 +0100
@@ -86,6 +86,7 @@
   <property name="jakarta.home" location="${env.CATALINA_HOME}" />
   <property name="module" value="%" />
   <property name="apply.on.create" value="false" />
+  <property name="apply.on.update" value="true" />
   <property name="obx.export.RD" value="false" />
   <property name="obx.export.DB" value="false" />
   <property name="obx.export.CS" value="false" />
@@ -129,6 +130,13 @@
     </or>
   </condition>
 
+  <condition property="apply.modules.on.update">
+    <or>
+      <equals arg1="yes" arg2="${apply.on.update}" />
+      <equals arg1="true" arg2="${apply.on.update}" />
+    </or>
+  </condition>
+
   <condition property="obx.exp.DB">
     <or>
       <equals arg1="yes" arg2="${obx.export.DB}" />
@@ -577,7 +585,7 @@
     <ant dir="${base.db}" target="export.config.script" inheritAll="true" inheritRefs="true" />
   </target>
 
-  <target name="db.apply.modules" if="apply.modules.on.create">
+  <target name="db.apply.modules" if="apply.modules.on.update">
     <antcall inheritall="true" inheritrefs="true" target="apply.module" />
   </target>