servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lh...@apache.org
Subject svn commit: r701095 - /servicemix/scripts/builds/webapps/builds/status.jsp
Date Thu, 02 Oct 2008 11:57:40 GMT
Author: lhein
Date: Thu Oct  2 04:57:39 2008
New Revision: 701095

URL: http://svn.apache.org/viewvc?rev=701095&view=rev
Log:
sorting enabled now

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=701095&r1=701094&r2=701095&view=diff
==============================================================================
--- servicemix/scripts/builds/webapps/builds/status.jsp (original)
+++ servicemix/scripts/builds/webapps/builds/status.jsp Thu Oct  2 04:57:39 2008
@@ -1,4 +1,4 @@
-<%@ page import="java.io.BufferedReader, java.io.File, java.io.FileReader, java.io.IOException,
java.util.HashMap, 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>
@@ -54,27 +54,27 @@
 
   String dir = "/mnt/builds/logs/";
   String failedTestsCheck = "[ERROR] There are test failures.";
-  HashMap prjMap = null;
+  TreeMap prjMap = null;
 
   void setupProjectMap() {
       if (prjMap == null) {
-        prjMap = new HashMap();
+        prjMap = new TreeMap();
         // now add all projects
-        prjMap.put("activemq-deploy.log", "ActiveMQ trunk deploy");
-        prjMap.put("camel-deploy.log", "Camel trunk deploy");
-        prjMap.put("servicemix-3.2-deploy.log", "ServiceMix 3.2 deploy 1");
-        prjMap.put("servicemix-3.2-deploy-2.log", "ServiceMix 3.2 deploy 2");
-        prjMap.put("smx-3.3-trunk-deploy.log", "ServiceMix 3.3 deploy");
-        prjMap.put("smx4-legal-deploy.log", "ServiceMix 4 legal deploy");
-        prjMap.put("smx4-bundles-deploy.log", "ServiceMix 4 bundles deploy");
-        prjMap.put("smx4-kernel-deploy.log", "ServiceMix 4 kernel deploy");
-        prjMap.put("smx4-specs-deploy.log", "ServiceMix 4 specs deploy");
-        prjMap.put("smx4-nmr-deploy.log", "ServiceMix 4 nmr deploy");
-        prjMap.put("smx4-features-deploy.log", "ServiceMix 4 features deploy");
-        prjMap.put("smx-components-pom-deploy.log", "ServiceMix Components POM");
-        prjMap.put("smx-archetypes-deploy.log", "ServiceMix Archetypes");
-        prjMap.put("smx-mvn-plugins-pom-deploy.log", "ServiceMix Maven Plugins POM");
-        prjMap.put("smx-utils-trunk-deploy.log", "ServiceMix Utils");
+        prjMap.put("ActiveMQ trunk deploy", "activemq-deploy.log");
+        prjMap.put("Camel trunk deploy", "camel-deploy.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");
+        prjMap.put("ServiceMix 3.3 deploy", "smx-3.3-trunk-deploy.log");
+        prjMap.put("ServiceMix 4 legal deploy", "smx4-legal-deploy.log");
+        prjMap.put("ServiceMix 4 bundles deploy", "smx4-bundles-deploy.log");
+        prjMap.put("ServiceMix 4 kernel deploy", "smx4-kernel-deploy.log");
+        prjMap.put("ServiceMix 4 specs deploy", "smx4-specs-deploy.log");
+        prjMap.put("ServiceMix 4 nmr deploy", "smx4-nmr-deploy.log");
+        prjMap.put("ServiceMix 4 features deploy", "smx4-features-deploy.log");
+        prjMap.put("ServiceMix Components POM", "smx-components-pom-deploy.log");
+        prjMap.put("ServiceMix Archetypes", "smx-archetypes-deploy.log");
+        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
       }      
     }
@@ -172,8 +172,8 @@
   Iterator it = prjMap.keySet().iterator();
   int cnt = 0;
   while (it.hasNext()) {
-    String logFileName = (String)it.next();
-    String projectName = (String)prjMap.get(logFileName);
+    String projectName = (String)it.next();
+    String logFileName = (String)prjMap.get(logFileName);
     
     out.write("<tr>");    
     out.write("  <td class='" + (cnt % 2 != 0 ? "gray" : "white") + "' width='40%'>");



Mime
View raw message