Force modules to have an initial isindevelopment state. Reverted apply.on.create property requirement for appllymodule in update.database, but made property true by default.
authorAntonio Moreno <antonio.moreno@openbravo.com>
Wed, 10 Feb 2010 12:48:28 +0100
changeset 6080 2cc77f70e267
parent 6079 9e477d96a9eb
child 6081 fcdd0ba58ca1
Force modules to have an initial isindevelopment state. Reverted apply.on.create property requirement for appllymodule in update.database, but made property true by default.
build.xml
src-db/database/build.xml
--- a/build.xml	Wed Feb 10 09:41:28 2010 +0100
+++ b/build.xml	Wed Feb 10 12:48:28 2010 +0100
@@ -85,7 +85,7 @@
   <property name="build.docs" location="docs/api" />
   <property name="jakarta.home" location="${env.CATALINA_HOME}" />
   <property name="module" value="%" />
-  <property name="apply.on.create" value="false" />
+  <property name="apply.on.create" value="true" />
   <property name="obx.export.RD" value="false" />
   <property name="obx.export.DB" value="false" />
   <property name="obx.export.CS" value="false" />
@@ -554,7 +554,7 @@
     <ant dir="${base.db}" target="update.database.java" inheritAll="true" inheritRefs="true" />
     <updatesystemstatus v="RB21"/>
     <antcall target="generate.entities.quick" />
-    <antcall inheritall="true" inheritrefs="true" target="apply.module" />
+    <antcall target="db.apply.modules" />
   </target>
 
   <target name="update.database.mod" depends="init, core.lib, database.lib">
@@ -577,6 +577,10 @@
     <ant dir="${base.db}" target="export.config.script" inheritAll="true" inheritRefs="true" />
   </target>
 
+  <target name="db.apply.modules" if="apply.modules.on.create">
+    <antcall inheritall="true" inheritrefs="true" target="apply.module" />
+  </target>
+
   <target name="db.apply.modules.sampledata" if="apply.modules.on.create">
     <antcall target="generate.entities" />
     <antcall inheritall="true" inheritrefs="true" target="apply.module" />
--- a/src-db/database/build.xml	Wed Feb 10 09:41:28 2010 +0100
+++ b/src-db/database/build.xml	Wed Feb 10 12:48:28 2010 +0100
@@ -156,6 +156,7 @@
           UPDATE AD_SYSTEM_INFO SET CODE_REVISION=SUBSTR('${code.revision}',1,60);
           CALL AD_UPDATE_ACCESS();
           UPDATE AD_MODULE SET SEQNO=NULL, STATUS='P', UPDATE_AVAILABLE=NULL WHERE STATUS IS NULL OR STATUS='I';
+          UPDATE AD_MODULE SET ISINDEVELOPMENT='N' WHERE ISINDEVELOPMENT IS NULL;
           CALL AD_LANGUAGE_CREATE(NULL);
         </transaction>
     </sql>
@@ -173,6 +174,7 @@
           UPDATE AD_SYSTEM_INFO SET CODE_REVISION=SUBSTR('${code.revision}',1,60);
           SELECT AD_UPDATE_ACCESS();
           UPDATE AD_MODULE SET SEQNO=NULL, STATUS='P', UPDATE_AVAILABLE=NULL WHERE STATUS IS NULL OR STATUS='I';
+          UPDATE AD_MODULE SET ISINDEVELOPMENT='N' WHERE ISINDEVELOPMENT IS NULL;
           SELECT AD_LANGUAGE_CREATE(NULL);
         </transaction>
     </sql>