[build time] Allow to generate all 2.50 windows
authorAsier Lostalé <asier.lostale@openbravo.com>
Wed, 12 Sep 2012 18:11:11 +0200
changeset 18217 a90ccc95e2e0
parent 18216 9585dd700f49
child 18218 6e8fd5e25c2b
[build time] Allow to generate all 2.50 windows
src-wad/src/org/openbravo/wad/Wad.java
src/build.xml
--- a/src-wad/src/org/openbravo/wad/Wad.java	Wed Sep 12 16:01:45 2012 +0200
+++ b/src-wad/src/org/openbravo/wad/Wad.java	Wed Sep 12 18:11:11 2012 +0200
@@ -227,6 +227,12 @@
         strWindowName = "xx";
       }
 
+      if (argv.length <= 17) {
+        generateAllClassic250Windows = false;
+      } else {
+        generateAllClassic250Windows = argv[17].equals("true");
+      }
+
       log4j.info("File connection: " + strFileConnection);
       log4j.info("window: " + strWindowName);
       log4j.info("module: " + module);
@@ -240,6 +246,7 @@
       log4j.info("Attach path: " + attachPath);
       log4j.info("Web path: " + webPath);
       log4j.info("Quick mode: " + quick);
+      log4j.info("Generate all 2.50 windows: " + generateAllClassic250Windows);
 
       final File fileFin = new File(dirFin);
       if (!fileFin.exists()) {
--- a/src/build.xml	Wed Sep 12 16:01:45 2012 +0200
+++ b/src/build.xml	Wed Sep 12 18:11:11 2012 +0200
@@ -440,7 +440,7 @@
   
   <target name="wad" depends="init, wadvalidation">
     <java classname="org.openbravo.wad.Wad" jvm="${env.JAVA_HOME}/bin/java" fork="yes" maxmemory="${build.maxmemory}" failonerror="true">
-      <arg line="'${base.config}' '${tab}' '${build.AD}/org/openbravo/erpWindows' '${build.AD}/org/openbravo/erpCommon' '${build.sqlc}/src' '${webTab}' '${build.AD}/org/openbravo/erpCommon/ad_actionButton' '${base.design}' '${base.translate.structure}' 'dummyValueUnused' '..' '${attach.path}' '${web.url}' '${base.src}' '${complete}' '${module}' 'noquick'" />
+      <arg line="'${base.config}' '${tab}' '${build.AD}/org/openbravo/erpWindows' '${build.AD}/org/openbravo/erpCommon' '${build.sqlc}/src' '${webTab}' '${build.AD}/org/openbravo/erpCommon/ad_actionButton' '${base.design}' '${base.translate.structure}' 'dummyValueUnused' '..' '${attach.path}' '${web.url}' '${base.src}' '${complete}' '${module}' 'noquick' '${wad.generateAllClassic250Windows}'" />
       <classpath refid="wad.class.path" />
       <syspropertyset>
          <propertyref name="java.security.egd" />
@@ -451,7 +451,7 @@
 
   <target name="wad.quick" depends="init, wadvalidation">
     <java classname="org.openbravo.wad.Wad" jvm="${env.JAVA_HOME}/bin/java" fork="yes" maxmemory="${build.maxmemory}">
-      <arg line="'${base.config}' '${tab}' '${build.AD}/org/openbravo/erpWindows' '${build.AD}/org/openbravo/erpCommon' '${build.sqlc}/src' '${webTab}' '${build.AD}/org/openbravo/erpCommon/ad_actionButton' '${base.design}' '${base.translate.structure}' 'dummyValueUnused' '..' '${attach.path}' '${web.url}' '${base.src}' '${complete}' '${module}' 'quick'" />
+      <arg line="'${base.config}' '${tab}' '${build.AD}/org/openbravo/erpWindows' '${build.AD}/org/openbravo/erpCommon' '${build.sqlc}/src' '${webTab}' '${build.AD}/org/openbravo/erpCommon/ad_actionButton' '${base.design}' '${base.translate.structure}' 'dummyValueUnused' '..' '${attach.path}' '${web.url}' '${base.src}' '${complete}' '${module}' 'quick' '${wad.generateAllClassic250Windows}'" />
       <classpath refid="wad.class.path" />
       <syspropertyset>
          <propertyref name="java.security.egd" />