details:   https://code.openbravo.com/erp/devel/pi/rev/6b84612a26a3
changeset: 15482:6b84612a26a3
user:      Antonio Moreno <antonio.moreno <at> openbravo.com>
date:      Wed Feb 15 12:19:15 2012 +0100
summary:   Fixed issue 19661. Build requests will be ignored while a build is 
running

diffstat:

 src/org/openbravo/erpCommon/ad_process/ApplyModules.java |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (29 lines):

diff -r ff7ef6b1079f -r 6b84612a26a3 
src/org/openbravo/erpCommon/ad_process/ApplyModules.java
--- a/src/org/openbravo/erpCommon/ad_process/ApplyModules.java  Mon Feb 13 
13:37:52 2012 +0100
+++ b/src/org/openbravo/erpCommon/ad_process/ApplyModules.java  Wed Feb 15 
12:19:15 2012 +0100
@@ -394,6 +394,9 @@
    */
   private void startApply(HttpServletResponse response, VariablesSecureApp 
vars)
       throws IOException, ServletException {
+    if (vars.getSessionValue("ApplyModules|BuildRunning").equals("Y")) {
+      return;
+    }
 
     OBContext.setAdminMode();
     PreparedStatement ps3 = null;
@@ -424,6 +427,7 @@
       final Vector<String> tasks = new Vector<String>();
       tasks.add("UIrebuild");
 
+      vars.setSessionValue("ApplyModules|BuildRunning", "Y");
       ant.runTask(tasks);
 
       vars.setSessionValue("ApplyModules|ProcessFinished", "Y");
@@ -435,6 +439,7 @@
       createModuleLog(false, e.getMessage());
       OBDal.getInstance().commitAndClose();
     } finally {
+      vars.setSessionValue("ApplyModules|BuildRunning", "");
       try {
         Properties props = new Properties();
         props.setProperty("log4j.rootCategory", "INFO,R");

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to