details:   https://code.openbravo.com/erp/devel/pi/rev/e7cf2e4b9ba4
changeset: 18151:e7cf2e4b9ba4
user:      Shankar Balachandran <shankar.balachandran <at> openbravo.com>
date:      Wed Oct 03 10:39:19 2012 +0200
summary:   0013212: When uninstalling a module fails, cannot rebuild again by 
app

Added rebuild option when last build has failed so that users can build from 
Module Management itself.

diffstat:

 src/org/openbravo/erpCommon/ad_forms/ModuleManagement.java |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r 80586c65a422 -r e7cf2e4b9ba4 
src/org/openbravo/erpCommon/ad_forms/ModuleManagement.java
--- a/src/org/openbravo/erpCommon/ad_forms/ModuleManagement.java        Tue Oct 
02 15:40:48 2012 +0200
+++ b/src/org/openbravo/erpCommon/ad_forms/ModuleManagement.java        Wed Oct 
03 10:39:19 2012 +0200
@@ -342,6 +342,15 @@
     try {
       String restartTomcat = ModuleManagementData.selectRestartTomcat(this);
       String totalToBeRebuilt = ModuleManagementData.selectRebuild(this);
+      /*
+       * Set rebuild now option if System is under Maintenance. Refer
+       * https://issues.openbravo.com/view.php?id=13212
+       */
+      Boolean lastBuildFailed = false;
+      SystemInformation sysInfo = 
OBDal.getInstance().get(SystemInformation.class, "0");
+      if (sysInfo.getSystemStatus() != null && 
!sysInfo.getSystemStatus().equals("RB70")) {
+        lastBuildFailed = true;
+      }
       // Check if last build was done but Tomcat wasn't restarted,
       // but dont show the restart tomcat message is a rebuild need to be done
       if (!restartTomcat.equals("0") && totalToBeRebuilt.equals("0")) {
@@ -349,7 +358,7 @@
             + Utility.messageBD(this, "Restart_Tomcat", lang) + "</a>";
       } else {
         // Check for rebuild system
-        if (!totalToBeRebuilt.equals("0")) {
+        if (!totalToBeRebuilt.equals("0") || lastBuildFailed) {
           updatesRebuildHTML = totalToBeRebuilt
               + "&nbsp;"
               + Utility.messageBD(this, "ApplyModules", lang)

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to