Author: ruwan
Date: Wed Jun 17 23:49:24 2009
New Revision: 39308
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=39308

Log:
Adding the build script for the ESB product


Added:
   branches/esb/java/2.1/build.sh

Added: branches/esb/java/2.1/build.sh
URL: 
http://wso2.org/svn/browse/wso2/branches/esb/java/2.1/build.sh?pathrev=39308
==============================================================================
--- (empty file)
+++ branches/esb/java/2.1/build.sh      Wed Jun 17 23:49:24 2009
@@ -0,0 +1,54 @@
+#!/bin/sh
+# Builds the ESB 2.1 with the carbon platform
+
+f_printhelp() {
+  echo "\n      ** Build Script for WSO2 ESB 2.1 - Help **"
+  echo "         ================================================\n"
+  echo "Available optional parameters :"
+  echo "\t-o\t\tBuild Offline"
+  echo "\t-ts\t\tSkip Tests\n"
+  echo "Note: Any other maven build parameters will also be accepted\n"
+  exit 0
+}
+
+# resolve links - $0 may be a softlink
+PRG="$0"
+
+while [ -h "$PRG" ]; do
+  ls=`ls -ld "$PRG"`
+  link=`expr "$ls" : '.*-> \(.*\)$'`
+  if expr "$link" : '.*/.*' > /dev/null; then
+    PRG="$link"
+  else
+    PRG=`dirname "$PRG"`/"$link"
+  fi
+done
+
+# Get standard environment variables
+PRGDIR=`dirname "$PRG"`
+
+PRGDIR="`pwd`/$PRGDIR"
+
+for c in $*
+do
+  if [ "$c" = "-help" ]; then
+    f_printhelp
+  elif [ "$c" = "-ts" ]; then
+    CMD="$CMD -Dmaven.test.skip=true"
+    echo "Warning: Skipping tests from the build"
+  else
+    if [ "$c" = "-o" ]; then
+      echo "Warning: Building offline"
+    fi
+    CMD="$CMD $c"
+  fi
+done
+
+echo "Building the ESB 2.1 with the Carbon Platform 2.0"
+
+cd $PRGDIR/carbon-platform
+sh build.sh -p esb $CMD
+cd $PRGDIR/product
+mvn clean install $CMD
+
+echo "Completed the ESB 2.1 build"

_______________________________________________
Esb-java-dev mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev

Reply via email to