servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r669232 - in /servicemix/scripts/builds: bin/ webapps/ webapps/builds/ webapps/builds/WEB-INF/
Date Wed, 18 Jun 2008 17:15:49 GMT
Author: jstrachan
Date: Wed Jun 18 10:15:48 2008
New Revision: 669232

URL: http://svn.apache.org/viewvc?rev=669232&view=rev
Log:
Added the build scripts and the web app for the nightly builds here : http://projects.open.iona.com/builds/status

Added:
    servicemix/scripts/builds/bin/
    servicemix/scripts/builds/bin/amq-nightly.sh   (with props)
    servicemix/scripts/builds/bin/camel-nightly.sh   (with props)
    servicemix/scripts/builds/bin/mvnci   (with props)
    servicemix/scripts/builds/bin/mvndeploy   (with props)
    servicemix/scripts/builds/bin/mvnnt   (with props)
    servicemix/scripts/builds/bin/mvnoci   (with props)
    servicemix/scripts/builds/bin/mvnont   (with props)
    servicemix/scripts/builds/bin/mvnsitedeploy   (with props)
    servicemix/scripts/builds/bin/smx-archetypes.sh   (with props)
    servicemix/scripts/builds/bin/smx-component-pom.sh   (with props)
    servicemix/scripts/builds/bin/smx-mvn-plugins-pom.sh   (with props)
    servicemix/scripts/builds/bin/smx32-nightly.sh   (with props)
    servicemix/scripts/builds/bin/smx33-nightly.sh   (with props)
    servicemix/scripts/builds/bin/smx4-nightly.sh   (with props)
    servicemix/scripts/builds/webapps/
    servicemix/scripts/builds/webapps/builds/
    servicemix/scripts/builds/webapps/builds/WEB-INF/
    servicemix/scripts/builds/webapps/builds/WEB-INF/web.xml   (with props)
    servicemix/scripts/builds/webapps/builds/status.jsp   (with props)

Added: servicemix/scripts/builds/bin/amq-nightly.sh
URL: http://svn.apache.org/viewvc/servicemix/scripts/builds/bin/amq-nightly.sh?rev=669232&view=auto
==============================================================================
--- servicemix/scripts/builds/bin/amq-nightly.sh (added)
+++ servicemix/scripts/builds/bin/amq-nightly.sh Wed Jun 18 10:15:48 2008
@@ -0,0 +1,16 @@
+#!/bin/sh
+LOGDIR=/mnt/builds/logs
+BINDIR=/home/jstrachan/bin
+DIR=/mnt/builds/activemq
+
+mkdir -p /mnt/builds/repository
+mkdir -p /mnt/builds/logs
+cd /mnt/builds
+
+echo "Starting activemq deploy" >> $LOGDIR/summary.log
+date >>  $LOGDIR/summary.log
+$BINDIR/mvndeploy $DIR > $LOGDIR/activemq-deploy.log
+
+echo "Starting activemq site deploy" >> $LOGDIR/summary.log
+date >>  $LOGDIR/summary.log
+$BINDIR/mvnsitedeploy $DIR > $LOGDIR/activemq-sitedeploy.log

Propchange: servicemix/scripts/builds/bin/amq-nightly.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: servicemix/scripts/builds/bin/amq-nightly.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: servicemix/scripts/builds/bin/camel-nightly.sh
URL: http://svn.apache.org/viewvc/servicemix/scripts/builds/bin/camel-nightly.sh?rev=669232&view=auto
==============================================================================
--- servicemix/scripts/builds/bin/camel-nightly.sh (added)
+++ servicemix/scripts/builds/bin/camel-nightly.sh Wed Jun 18 10:15:48 2008
@@ -0,0 +1,16 @@
+#!/bin/sh
+LOGDIR=/mnt/builds/logs
+BINDIR=/home/jstrachan/bin
+DIR=/mnt/builds/camel
+
+mkdir -p /mnt/builds/repository
+mkdir -p /mnt/builds/logs
+cd /mnt/builds
+
+echo "Starting camel deploy" >> $LOGDIR/summary.log
+date >>  $LOGDIR/summary.log
+$BINDIR/mvndeploy $DIR > $LOGDIR/camel-deploy.log
+
+echo "Starting camel site deploy" >> $LOGDIR/summary.log
+date >>  $LOGDIR/summary.log
+$BINDIR/mvnsitedeploy $DIR > $LOGDIR/camel-sitedeploy.log

Propchange: servicemix/scripts/builds/bin/camel-nightly.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: servicemix/scripts/builds/bin/camel-nightly.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: servicemix/scripts/builds/bin/mvnci
URL: http://svn.apache.org/viewvc/servicemix/scripts/builds/bin/mvnci?rev=669232&view=auto
==============================================================================
--- servicemix/scripts/builds/bin/mvnci (added)
+++ servicemix/scripts/builds/bin/mvnci Wed Jun 18 10:15:48 2008
@@ -0,0 +1,2 @@
+#!/bin/sh
+mvn clean install
\ No newline at end of file

Propchange: servicemix/scripts/builds/bin/mvnci
------------------------------------------------------------------------------
    svn:executable = *

Added: servicemix/scripts/builds/bin/mvndeploy
URL: http://svn.apache.org/viewvc/servicemix/scripts/builds/bin/mvndeploy?rev=669232&view=auto
==============================================================================
--- servicemix/scripts/builds/bin/mvndeploy (added)
+++ servicemix/scripts/builds/bin/mvndeploy Wed Jun 18 10:15:48 2008
@@ -0,0 +1,7 @@
+#!/bin/sh
+echo "mvn deploying directory: $1"
+cd $1
+#svn up
+export MAVEN_OPTS="-Xmx800m -XX:MaxPermSize=250m" 
+echo "Maven opts are $MAVEN_OPTS"
+/opt/maven/bin/mvn -Dtest=false -DfailIfNoTests=false -Pnochecks --batch-mode clean deploy
$2 $3 $4 $5 

Propchange: servicemix/scripts/builds/bin/mvndeploy
------------------------------------------------------------------------------
    svn:executable = *

Added: servicemix/scripts/builds/bin/mvnnt
URL: http://svn.apache.org/viewvc/servicemix/scripts/builds/bin/mvnnt?rev=669232&view=auto
==============================================================================
--- servicemix/scripts/builds/bin/mvnnt (added)
+++ servicemix/scripts/builds/bin/mvnnt Wed Jun 18 10:15:48 2008
@@ -0,0 +1,2 @@
+#!/bin/sh
+mvn -Dtest=false -DfailIfNoTests=false clean install $*

Propchange: servicemix/scripts/builds/bin/mvnnt
------------------------------------------------------------------------------
    svn:executable = *

Added: servicemix/scripts/builds/bin/mvnoci
URL: http://svn.apache.org/viewvc/servicemix/scripts/builds/bin/mvnoci?rev=669232&view=auto
==============================================================================
--- servicemix/scripts/builds/bin/mvnoci (added)
+++ servicemix/scripts/builds/bin/mvnoci Wed Jun 18 10:15:48 2008
@@ -0,0 +1,2 @@
+#!/bin/sh
+mvn -o clean install
\ No newline at end of file

Propchange: servicemix/scripts/builds/bin/mvnoci
------------------------------------------------------------------------------
    svn:executable = *

Added: servicemix/scripts/builds/bin/mvnont
URL: http://svn.apache.org/viewvc/servicemix/scripts/builds/bin/mvnont?rev=669232&view=auto
==============================================================================
--- servicemix/scripts/builds/bin/mvnont (added)
+++ servicemix/scripts/builds/bin/mvnont Wed Jun 18 10:15:48 2008
@@ -0,0 +1,2 @@
+#!/bin/sh
+mvn -o -Dtest=false $*

Propchange: servicemix/scripts/builds/bin/mvnont
------------------------------------------------------------------------------
    svn:executable = *

Added: servicemix/scripts/builds/bin/mvnsitedeploy
URL: http://svn.apache.org/viewvc/servicemix/scripts/builds/bin/mvnsitedeploy?rev=669232&view=auto
==============================================================================
--- servicemix/scripts/builds/bin/mvnsitedeploy (added)
+++ servicemix/scripts/builds/bin/mvnsitedeploy Wed Jun 18 10:15:48 2008
@@ -0,0 +1,7 @@
+#!/bin/sh
+echo "mvn deploying directory: $1"
+cd $1
+#svn up
+export MAVEN_OPTS="-Xmx800m -XX:MaxPermSize=250m" 
+echo "Maven opts are $MAVEN_OPTS"
+/opt/maven/bin/mvn -Dtest=false -DfailIfNoTests=false clean site site:deploy

Propchange: servicemix/scripts/builds/bin/mvnsitedeploy
------------------------------------------------------------------------------
    svn:executable = *

Added: servicemix/scripts/builds/bin/smx-archetypes.sh
URL: http://svn.apache.org/viewvc/servicemix/scripts/builds/bin/smx-archetypes.sh?rev=669232&view=auto
==============================================================================
--- servicemix/scripts/builds/bin/smx-archetypes.sh (added)
+++ servicemix/scripts/builds/bin/smx-archetypes.sh Wed Jun 18 10:15:48 2008
@@ -0,0 +1,18 @@
+#!/bin/sh
+LOGDIR=/mnt/builds/logs
+BINDIR=/home/jstrachan/bin
+DIR=/mnt/builds/smx-archetypes
+
+mkdir -p /mnt/builds/repository
+mkdir -p /mnt/builds/logs
+cd /mnt/builds
+
+echo "Starting smx-archetypes deploy" >> $LOGDIR/summary.log
+date >>  $LOGDIR/summary.log
+
+svn co https://svn.apache.org/repos/asf/servicemix/archetypes/trunk smx-archetypes > $LOGDIR/smx-archetypes-deploy.log
+$BINDIR/mvndeploy $DIR >> $LOGDIR/smx-archetypes-deploy.log
+
+echo "Starting smx-archetypes site deploy" >> $LOGDIR/summary.log
+date >>  $LOGDIR/summary.log
+$BINDIR/mvnsitedeploy $DIR > $LOGDIR/smx-archetypes-sitedeploy.log

Propchange: servicemix/scripts/builds/bin/smx-archetypes.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: servicemix/scripts/builds/bin/smx-archetypes.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: servicemix/scripts/builds/bin/smx-component-pom.sh
URL: http://svn.apache.org/viewvc/servicemix/scripts/builds/bin/smx-component-pom.sh?rev=669232&view=auto
==============================================================================
--- servicemix/scripts/builds/bin/smx-component-pom.sh (added)
+++ servicemix/scripts/builds/bin/smx-component-pom.sh Wed Jun 18 10:15:48 2008
@@ -0,0 +1,18 @@
+#!/bin/sh
+LOGDIR=/mnt/builds/logs
+BINDIR=/home/jstrachan/bin
+DIR=/mnt/builds/smx-components-pom
+
+mkdir -p /mnt/builds/repository
+mkdir -p /mnt/builds/logs
+cd /mnt/builds
+
+echo "Starting smx-components-pom deploy" >> $LOGDIR/summary.log
+date >>  $LOGDIR/summary.log
+
+svn co https://svn.apache.org/repos/asf/servicemix/components/components-pom/trunk smx-components-pom
> $LOGDIR/smx-components-pom-deploy.log
+$BINDIR/mvndeploy $DIR >> $LOGDIR/smx-components-pom-deploy.log
+
+echo "Starting smx-components-pom site deploy" >> $LOGDIR/summary.log
+date >>  $LOGDIR/summary.log
+$BINDIR/mvnsitedeploy $DIR > $LOGDIR/smx-components-pom-sitedeploy.log

Propchange: servicemix/scripts/builds/bin/smx-component-pom.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: servicemix/scripts/builds/bin/smx-component-pom.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: servicemix/scripts/builds/bin/smx-mvn-plugins-pom.sh
URL: http://svn.apache.org/viewvc/servicemix/scripts/builds/bin/smx-mvn-plugins-pom.sh?rev=669232&view=auto
==============================================================================
--- servicemix/scripts/builds/bin/smx-mvn-plugins-pom.sh (added)
+++ servicemix/scripts/builds/bin/smx-mvn-plugins-pom.sh Wed Jun 18 10:15:48 2008
@@ -0,0 +1,18 @@
+#!/bin/sh
+LOGDIR=/mnt/builds/logs
+BINDIR=/home/jstrachan/bin
+DIR=/mnt/builds/smx-mvn-plugins-pom
+
+mkdir -p /mnt/builds/repository
+mkdir -p /mnt/builds/logs
+cd /mnt/builds
+
+echo "Starting smx-mvn-plugins-pom deploy" >> $LOGDIR/summary.log
+date >>  $LOGDIR/summary.log
+
+svn co https://svn.apache.org/repos/asf/servicemix/maven-plugins/maven-plugins-pom/trunk
smx-mvn-plugins-pom > $LOGDIR/smx-mvn-plugins-pom-deploy.log
+$BINDIR/mvndeploy $DIR >> $LOGDIR/smx-mvn-plugins-pom-deploy.log
+
+echo "Starting smx-mvn-plugins-pom site deploy" >> $LOGDIR/summary.log
+date >>  $LOGDIR/summary.log
+$BINDIR/mvnsitedeploy $DIR > $LOGDIR/smx-mvn-plugins-pom-sitedeploy.log

Propchange: servicemix/scripts/builds/bin/smx-mvn-plugins-pom.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: servicemix/scripts/builds/bin/smx-mvn-plugins-pom.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: servicemix/scripts/builds/bin/smx32-nightly.sh
URL: http://svn.apache.org/viewvc/servicemix/scripts/builds/bin/smx32-nightly.sh?rev=669232&view=auto
==============================================================================
--- servicemix/scripts/builds/bin/smx32-nightly.sh (added)
+++ servicemix/scripts/builds/bin/smx32-nightly.sh Wed Jun 18 10:15:48 2008
@@ -0,0 +1,22 @@
+#!/bin/sh
+LOGDIR=/mnt/builds/logs
+BINDIR=/home/jstrachan/bin
+DIR=/mnt/builds/servicemix-3.2
+
+mkdir -p /mnt/builds/repository
+mkdir -p /mnt/builds/logs
+cd /mnt/builds
+
+echo "Starting servicemix-3.2 step 1 deploy" >> $LOGDIR/summary.log
+date >>  $LOGDIR/summary.log
+
+svn co  https://svn.apache.org/repos/asf/servicemix/smx3/branches/servicemix-3.2 servicemix-3.2
> $LOGDIR/servicemix-3.2-deploy.log
+$BINDIR/mvndeploy $DIR -Pstep1 >> $LOGDIR/servicemix-3.2-deploy.log
+
+echo "Starting servicemix-3.2 step 2 deploy" >> $LOGDIR/summary.log
+date >>  $LOGDIR/summary.log
+$BINDIR/mvndeploy $DIR -Pstep2 > $LOGDIR/servicemix-3.2-deploy-2.log
+
+echo "Starting servicemix-3.2 site deploy" >> $LOGDIR/summary.log
+date >>  $LOGDIR/summary.log
+$BINDIR/mvnsitedeploy $DIR > $LOGDIR/servicemix-3.2-sitedeploy.log

Propchange: servicemix/scripts/builds/bin/smx32-nightly.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: servicemix/scripts/builds/bin/smx32-nightly.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: servicemix/scripts/builds/bin/smx33-nightly.sh
URL: http://svn.apache.org/viewvc/servicemix/scripts/builds/bin/smx33-nightly.sh?rev=669232&view=auto
==============================================================================
--- servicemix/scripts/builds/bin/smx33-nightly.sh (added)
+++ servicemix/scripts/builds/bin/smx33-nightly.sh Wed Jun 18 10:15:48 2008
@@ -0,0 +1,22 @@
+#!/bin/sh
+LOGDIR=/mnt/builds/logs
+BINDIR=/home/jstrachan/bin
+DIR=/mnt/builds/smx-3.3-trunk
+
+mkdir -p /mnt/builds/repository
+mkdir -p /mnt/builds/logs
+cd /mnt/builds
+
+echo "Starting smx-3.3-trunk step 1 deploy" >> $LOGDIR/summary.log
+date >>  $LOGDIR/summary.log
+
+svn co https://svn.apache.org/repos/asf/servicemix/smx3/trunk smx-3.3-trunk > $LOGDIR/smx-3.3-trunk-deploy.log
+$BINDIR/mvndeploy $DIR -Pstep1 >> $LOGDIR/smx-3.3-trunk-deploy.log
+
+echo "Starting smx-3.3-trunk step 2 deploy" >> $LOGDIR/summary.log
+date >>  $LOGDIR/summary.log
+$BINDIR/mvndeploy $DIR -Pstep2 > $LOGDIR/smx-3.3-trunk-deploy-2.log
+
+echo "Starting smx-3.3-trunk site deploy" >> $LOGDIR/summary.log
+date >>  $LOGDIR/summary.log
+$BINDIR/mvnsitedeploy $DIR > $LOGDIR/smx-3.3-trunk-sitedeploy.log

Propchange: servicemix/scripts/builds/bin/smx33-nightly.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: servicemix/scripts/builds/bin/smx33-nightly.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: servicemix/scripts/builds/bin/smx4-nightly.sh
URL: http://svn.apache.org/viewvc/servicemix/scripts/builds/bin/smx4-nightly.sh?rev=669232&view=auto
==============================================================================
--- servicemix/scripts/builds/bin/smx4-nightly.sh (added)
+++ servicemix/scripts/builds/bin/smx4-nightly.sh Wed Jun 18 10:15:48 2008
@@ -0,0 +1,58 @@
+#!/bin/sh
+LOGDIR=/mnt/builds/logs
+BINDIR=/home/jstrachan/bin
+DIR=/mnt/builds
+
+mkdir -p /mnt/builds/repository
+mkdir -p /mnt/builds/logs
+cd /mnt/builds
+
+echo "Starting smx4-legal deploy" >> $LOGDIR/summary.log
+date >>  $LOGDIR/summary.log
+
+svn co  https://svn.apache.org/repos/asf/servicemix/smx4/legal/trunk smx4-legal > $LOGDIR/smx4-legal-deploy.log
+$BINDIR/mvndeploy $DIR/smx4-legal >> $LOGDIR/smx4-legal-deploy.log
+
+# echo "Starting smx4-legal site deploy" >> $LOGDIR/summary.log
+# date >>  $LOGDIR/summary.log
+# $BINDIR/mvnsitedeploy $DIR/smx4-legal > $LOGDIR/smx4-legal-sitedeploy.log
+
+echo "Starting smx4-kernel deploy" >> $LOGDIR/summary.log
+date >>  $LOGDIR/summary.log
+
+svn co  https://svn.apache.org/repos/asf/servicemix/smx4/kernel/trunk smx4-kernel > $LOGDIR/smx4-kernel-deploy.log
+$BINDIR/mvndeploy $DIR/smx4-kernel >> $LOGDIR/smx4-kernel-deploy.log
+
+# echo "Starting smx4-kernel site deploy" >> $LOGDIR/summary.log
+# date >>  $LOGDIR/summary.log
+# $BINDIR/mvnsitedeploy $DIR/smx4-kernel > $LOGDIR/smx4-kernel-sitedeploy.log
+
+echo "Starting smx4-specs deploy" >> $LOGDIR/summary.log
+date >>  $LOGDIR/summary.log
+
+svn co https://svn.apache.org/repos/asf/servicemix/smx4/specs/trunk smx4-specs > $LOGDIR/smx4-specs-deploy.log
+$BINDIR/mvndeploy $DIR/smx4-specs >> $LOGDIR/smx4-specs-deploy.log
+
+# echo "Starting smx4-specs site deploy" >> $LOGDIR/summary.log
+# date >>  $LOGDIR/summary.log
+# $BINDIR/mvnsitedeploy $DIR/smx4-specs > $LOGDIR/smx4-specs-sitedeploy.log
+
+echo "Starting smx4-nmr deploy" >> $LOGDIR/summary.log
+date >>  $LOGDIR/summary.log
+
+svn co https://svn.apache.org/repos/asf/servicemix/smx4/nmr/trunk smx4-nmr > $LOGDIR/smx4-nmr-deploy.log
+$BINDIR/mvndeploy $DIR/smx4-nmr >> $LOGDIR/smx4-nmr-deploy.log
+
+# echo "Starting smx4-nmr site deploy" >> $LOGDIR/summary.log
+# date >>  $LOGDIR/summary.log
+# $BINDIR/mvnsitedeploy $DIR/smx4-nmr > $LOGDIR/smx4-nmr-sitedeploy.log
+
+echo "Starting smx4-features deploy" >> $LOGDIR/summary.log
+date >>  $LOGDIR/summary.log
+
+svn co https://svn.apache.org/repos/asf/servicemix/smx4/features/trunk smx4-features >
$LOGDIR/smx4-features-deploy.log
+$BINDIR/mvndeploy $DIR/smx4-features >> $LOGDIR/smx4-features-deploy.log
+
+# echo "Starting smx4-features site deploy" >> $LOGDIR/summary.log
+# date >>  $LOGDIR/summary.log
+# $BINDIR/mvnsitedeploy $DIR/smx4-features > $LOGDIR/smx4-features-sitedeploy.log

Propchange: servicemix/scripts/builds/bin/smx4-nightly.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: servicemix/scripts/builds/bin/smx4-nightly.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: servicemix/scripts/builds/webapps/builds/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/servicemix/scripts/builds/webapps/builds/WEB-INF/web.xml?rev=669232&view=auto
==============================================================================
--- servicemix/scripts/builds/webapps/builds/WEB-INF/web.xml (added)
+++ servicemix/scripts/builds/webapps/builds/WEB-INF/web.xml Wed Jun 18 10:15:48 2008
@@ -0,0 +1,37 @@
+<!DOCTYPE web-app PUBLIC
+ "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+ "http://java.sun.com/dtd/web-app_2_3.dtd" >
+
+<web-app>
+  <display-name>Apache Builds</display-name>
+
+ 
+  <servlet>
+    <servlet-name>default</servlet-name>
+    <servlet-class>org.mortbay.jetty.servlet.DefaultServlet</servlet-class>
+    <init-param>
+      <param-name>aliases</param-name>
+      <param-value>true</param-value>
+    </init-param>
+    <init-param>
+      <param-name>resourceBase</param-name>
+      <param-value>/mnt/builds</param-value>
+    </init-param>
+  </servlet>
+  <servlet>
+       <servlet-name>status</servlet-name>
+       <jsp-file>/status.jsp</jsp-file>
+  </servlet>
+
+  <servlet-mapping>
+       <servlet-name>status</servlet-name>
+       <url-pattern>/status</url-pattern>
+  </servlet-mapping>
+  <servlet-mapping>
+    <servlet-name>default</servlet-name>
+    <url-pattern>/*</url-pattern>
+  </servlet-mapping>
+
+</web-app>
+
+

Propchange: servicemix/scripts/builds/webapps/builds/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: servicemix/scripts/builds/webapps/builds/status.jsp
URL: http://svn.apache.org/viewvc/servicemix/scripts/builds/webapps/builds/status.jsp?rev=669232&view=auto
==============================================================================
--- servicemix/scripts/builds/webapps/builds/status.jsp (added)
+++ servicemix/scripts/builds/webapps/builds/status.jsp Wed Jun 18 10:15:48 2008
@@ -0,0 +1,151 @@
+<%@ page import="java.io.BufferedReader, java.io.File, java.io.FileReader, java.io.IOException"%>
+<html>
+<head>
+  <title>Apache Build Status</title>
+  <style type="text/css">
+    body {
+      font-family: Arial, sans-serif, Verdana, Helvetica;
+    }
+    .failure {
+      background-color: red;
+      color: white;
+      padding-left: 8px;
+      padding-right: 8px;
+    }
+    .error {
+      background-color: red;
+      color: white;
+      padding-left: 8px;
+      padding-right: 8px;
+    }
+    .success {
+      background-color: green;
+      color: white;
+      padding-left: 8px;
+      padding-right: 8px;
+    }
+    .building {
+      background-color: blue;
+      color: white;
+      padding-left: 8px;
+      padding-right: 8px;
+    }
+
+  </style>
+</head>
+<body>
+<h1>Apache Build Status</h1>
+
+<%!
+  String dir = "/mnt/builds/logs/";
+
+  String processBuildFile(String uri) {
+    // lets check to see if its
+    String file = dir + uri;
+    BufferedReader reader = null;
+    try {
+      System.out.println("Processing: " + file);
+      if (new File(file).lastModified() + 80000 >= System.currentTimeMillis()) {
+      	  return "<a href='logs/" + uri + "' class='building'>BUILDING</a>";
+      }
+      reader = new BufferedReader(new FileReader(file));
+      while (true) {
+        String line = reader.readLine();
+        if (line == null) {
+          break;
+        } else {
+          if (line.contains("BUILD SUCCESSFUL")) {
+            return "<a href='logs/" + uri + "' class='success'>SUCCESS</a>";
+          }
+        }
+      }
+    } catch (IOException e) {
+      return "<a href='logs/" + uri + "' class='error'>" + e + "</a>";
+    }
+    finally {
+      if (reader != null) {
+        try {
+          reader.close();
+        } catch (IOException e) {
+          e.printStackTrace();
+        }
+      }
+    }
+    return "<a href='logs/" + uri + "' class='failure'>FAILURE</a>";
+  }
+%>
+
+<table>
+  <tr>
+    <td>ActiveMQ trunk deploy</td>
+    <td><%= processBuildFile("activemq-deploy.log")%>
+    </td>
+  </tr>
+  <tr>
+    <td>Camel trunk deploy</td>
+    <td><%= processBuildFile("camel-deploy.log")%>
+    </td>
+  </tr>
+  <tr>
+    <td>ServiceMix 3.2 deploy 1</td>
+    <td><%= processBuildFile("servicemix-3.2-deploy.log")%>
+    </td>
+  </tr>
+  <tr>
+    <td>ServiceMix 3.2 deploy 2</td>
+    <td><%= processBuildFile("servicemix-3.2-deploy-2.log")%>
+    </td>
+  </tr>
+  <tr>
+    <td>ServiceMix 3.3 deploy 1</td>
+    <td><%= processBuildFile("smx-3.3-trunk-deploy.log")%>
+    </td>
+  </tr>
+  <tr>
+    <td>ServiceMix 3.3 deploy 2</td>
+    <td><%= processBuildFile("smx-3.3-trunk-deploy-2.log")%>
+    </td>
+  </tr>
+  <tr>
+    <td>ServiceMix 4 legal deploy</td>
+    <td><%= processBuildFile("smx4-legal-deploy.log")%>
+    </td>
+  </tr>
+  <tr>
+    <td>ServiceMix 4 kernel deploy</td>
+    <td><%= processBuildFile("smx4-kernel-deploy.log")%>
+    </td>
+  </tr>
+  <tr>
+    <td>ServiceMix 4 specs deploy</td>
+    <td><%= processBuildFile("smx4-specs-deploy.log")%>
+    </td>
+  </tr>
+  <tr>
+    <td>ServiceMix 4 nmr deploy</td>
+    <td><%= processBuildFile("smx4-nmr-deploy.log")%>
+    </td>
+  </tr>
+  <tr>
+    <td>ServiceMix 4 features deploy</td>
+    <td><%= processBuildFile("smx4-features-deploy.log")%>
+    </td>
+  </tr>
+  <tr>
+    <td>ServiceMix Components POM</td>
+    <td><%= processBuildFile("smx-components-pom-deploy.log")%>
+    </td>
+  </tr>
+  <tr>
+    <td>ServiceMix Archetypes</td>
+    <td><%= processBuildFile("smx-archetypes-deploy.log")%>
+    </td>
+  </tr>
+  <tr>
+    <td>ServiceMix Maven Plugins POM</td>
+    <td><%= processBuildFile("smx-mvn-plugins-pom-deploy.log")%>
+    </td>
+  </tr>
+</table>
+</body>
+</html>

Propchange: servicemix/scripts/builds/webapps/builds/status.jsp
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message