Author: ruwan
Date: Thu Jun 18 00:08:16 2009
New Revision: 39316
URL:
http://wso2.org/svn/browse/wso2?view=rev&revision=39316Log:
Adding the build script
Added:
branches/solutions/identity/2.0/build.sh
Added: branches/solutions/identity/2.0/build.sh
URL:
http://wso2.org/svn/browse/wso2/branches/solutions/identity/2.0/build.sh?pathrev=39316==============================================================================
--- (empty file)
+++ branches/solutions/identity/2.0/build.sh Thu Jun 18 00:08:16 2009
@@ -0,0 +1,54 @@
+#!/bin/sh
+# Builds the ESB 2.1 with the carbon platform
+
+f_printhelp() {
+ echo "\n ** Build Script for WSO2 IS 2.0 - 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 IS 2.0 with the Carbon Platform 2.0"
+
+cd $PRGDIR/carbon-platform
+sh build.sh -p is $CMD
+cd $PRGDIR/product
+mvn clean install $CMD
+
+echo "Completed the IS 2.0 build"
_______________________________________________
Identity-dev mailing list
[hidden email]
https://wso2.org/cgi-bin/mailman/listinfo/identity-dev