geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r420338 - /geronimo/sandbox/svkmerge/m2migration/bootstrap
Date Sun, 09 Jul 2006 19:53:16 GMT
Author: jdillon
Date: Sun Jul  9 12:53:15 2006
New Revision: 420338

URL: http://svn.apache.org/viewvc?rev=420338&view=rev
Log:
Abort on errors
Checkout and build Genesis first

Modified:
    geronimo/sandbox/svkmerge/m2migration/bootstrap

Modified: geronimo/sandbox/svkmerge/m2migration/bootstrap
URL: http://svn.apache.org/viewvc/geronimo/sandbox/svkmerge/m2migration/bootstrap?rev=420338&r1=420337&r2=420338&view=diff
==============================================================================
--- geronimo/sandbox/svkmerge/m2migration/bootstrap (original)
+++ geronimo/sandbox/svkmerge/m2migration/bootstrap Sun Jul  9 12:53:15 2006
@@ -3,6 +3,18 @@
 ## $Id$
 ##
 
+PROGNAME=`basename "$0"`
+DIRNAME=`dirname "$0"`
+
+warn() {
+    echo "${PROGNAME}: $*"
+}
+
+die() {
+    warn "$*"
+    exit 1
+}
+
 clean() {
     echo "Cleaning..."
     
@@ -15,6 +27,28 @@
     echo "Starting stage: $1"
     
     mvn -Dstage=$1
+    
+    if [ "$?" != "0"] ; then
+        die "Bootstrap failed in stage $1"
+    fi
+}
+
+##
+## NOTE: Genesis add here until a release can be made to the offcial location
+##
+genesis() {
+    echo "Building Genesis..."
+    
+    rm -rf genesis
+    svn co https://svn.apache.org/repos/asf/geronimo/sandbox/svkmerge/genesis
+    (
+        cd genesis
+        mvn install
+        
+        if [ "$?" != "0"] ; then
+            die "Bootstrap failed building Genesis"
+        fi
+    )
 }
 
 thirdparty() {
@@ -33,6 +67,10 @@
         (
             cd tranql
             mvn -Dmaven.test.skip=true install
+            
+            if [ "$?" != "0"] ; then
+                die "Bootstrap failed building TranQL"
+            fi
         )
         
         # Build OpenEJB
@@ -42,17 +80,23 @@
         (
             cd openejb2
             mvn -Dmaven.test.skip=true install
+            
+            if [ "$?" != "0"] ; then
+                die "Bootstrap failed building OpenEJB"
+            fi
         )
     )
 }
 
 clean
 
-stage bootstrap
+genesis
+
+stage "bootstrap"
 
 thirdparty
 
-stage assemble
+stage "assemble"
 
 echo "Done"
 



Mime
View raw message