You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by lh...@apache.org on 2008/10/10 12:11:51 UTC

svn commit: r703378 - /servicemix/scripts/builds/webapps/builds/status.jsp

Author: lhein
Date: Fri Oct 10 03:11:50 2008
New Revision: 703378

URL: http://svn.apache.org/viewvc?rev=703378&view=rev
Log:
commented out session use while not found the error

Modified:
    servicemix/scripts/builds/webapps/builds/status.jsp

Modified: servicemix/scripts/builds/webapps/builds/status.jsp
URL: http://svn.apache.org/viewvc/servicemix/scripts/builds/webapps/builds/status.jsp?rev=703378&r1=703377&r2=703378&view=diff
==============================================================================
--- servicemix/scripts/builds/webapps/builds/status.jsp (original)
+++ servicemix/scripts/builds/webapps/builds/status.jsp Fri Oct 10 03:11:50 2008
@@ -57,8 +57,6 @@
 <hr /><br />
 
 <%!
-  HttpSession session = ((HttpServletRequest) request).getSession();
-
   String dir = "/mnt/builds/logs/";
   String failedTestsCheck = "[ERROR] There are test failures.";
   String key_projectMap = "projects";
@@ -71,9 +69,9 @@
 
   void setupMaps() {
       // first setup the projects map
-      if (session.getAttribute(key_projectMap) != null) {
-        prjMap = (TreeMap)session.getAttribute(key_projectMap);
-      } else {
+//      if (session.getAttribute(key_projectMap) != null) {
+//        prjMap = (TreeMap)session.getAttribute(key_projectMap);
+//      } else {
         prjMap = new TreeMap();
         // now add all projects
         prjMap.put("ActiveMQ trunk deploy", "activemq-deploy.log");
@@ -94,24 +92,24 @@
 //        prjMap.put("ServiceMix 3.2 deploy 2", "servicemix-3.2-deploy-2.log");
         
         // register to session
-        session.setAttribute(key_projectMap, prjMap);
-      }      
+//        session.setAttribute(key_projectMap, prjMap);
+        //      }      
       
       // then setup the timestamp map
-      if (session.getAttribute(key_timestamps) != null) {
-        tsMap = (TreeMap)session.getAttribute(key_timestamps);
-      } else {
+//      if (session.getAttribute(key_timestamps) != null) {
+//        tsMap = (TreeMap)session.getAttribute(key_timestamps);
+//      } else {
         tsMap = new TreeMap();
-        session.setAttribute(key_timestamps, tsMap);
-      }
+        //        session.setAttribute(key_timestamps, tsMap);
+        //      }
       
       // then setup the lastResult map
-      if (session.getAttribute(key_lastresults) != null) {
-        lastResultMap = (TreeMap)session.getAttribute(key_lastresults);
-      } else {
+//      if (session.getAttribute(key_lastresults) != null) {
+//        lastResultMap = (TreeMap)session.getAttribute(key_lastresults);
+//      } else {
         lastResultMap = new TreeMap();
-        session.setAttribute(key_lastresults, lastResultMap);
-      }
+//        session.setAttribute(key_lastresults, lastResultMap);
+//      }
     }
   
   String processBuildFile(String uri) {
@@ -187,6 +185,9 @@
     tsMap.put(uri, new Long(ts));
     // remember the result
     lastResultMap.put(uri, result);
+    // session handling
+//    session.setAttribute(key_timestamps, tsMap);
+//    session.setAttribute(key_lastresults, lastResultMap);
   }