servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lh...@apache.org
Subject svn commit: r703390 - /servicemix/scripts/builds/webapps/builds/status.jsp
Date Fri, 10 Oct 2008 10:44:15 GMT
Author: lhein
Date: Fri Oct 10 03:44:15 2008
New Revision: 703390

URL: http://svn.apache.org/viewvc?rev=703390&view=rev
Log:
test

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=703390&r1=703389&r2=703390&view=diff
==============================================================================
--- servicemix/scripts/builds/webapps/builds/status.jsp (original)
+++ servicemix/scripts/builds/webapps/builds/status.jsp Fri Oct 10 03:44:15 2008
@@ -1,4 +1,4 @@
-<%@ page session="true" import="java.io.BufferedReader, java.io.File, java.io.FileReader,
java.io.IOException, java.util.TreeMap, java.util.Date, java.util.Iterator"%>
+<%@ page import="java.io.BufferedReader, java.io.File, java.io.FileReader, java.io.IOException,
java.util.TreeMap, java.util.Date, java.util.Iterator"%>
 <html>
 <head>
   <title>Apache Build Status at: <%= new Date() %></title>
@@ -56,7 +56,7 @@
 <h1>Apache Build Status</h1>
 <hr /><br />
 
-<%!
+<%
   String dir = "/mnt/builds/logs/";
   String failedTestsCheck = "[ERROR] There are test failures.";
   String key_projectMap = "projects";
@@ -69,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");
@@ -88,28 +88,28 @@
         prjMap.put("ServiceMix Maven Plugins POM", "smx-mvn-plugins-pom-deploy.log");
         prjMap.put("ServiceMix Utils", "smx-utils-trunk-deploy.log");
         // add more projects here
-//        prjMap.put("ServiceMix 3.2 deploy 1", "servicemix-3.2-deploy.log");
-//        prjMap.put("ServiceMix 3.2 deploy 2", "servicemix-3.2-deploy-2.log");
+        prjMap.put("ServiceMix 3.2 deploy 1", "servicemix-3.2-deploy.log");
+        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) {
@@ -186,8 +186,8 @@
     // remember the result
     lastResultMap.put(uri, result);
     // session handling
-//    session.setAttribute(key_timestamps, tsMap);
-//    session.setAttribute(key_lastresults, lastResultMap);
+    session.setAttribute(key_timestamps, tsMap);
+    session.setAttribute(key_lastresults, lastResultMap);
   }
   
   
@@ -253,6 +253,6 @@
   }
 %>
 </table>
-<%= request.getServerName() %>
+
 </body>
 </html>



Mime
View raw message