geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r474158 - /geronimo/genesis/trunk/build-harness/build
Date Mon, 13 Nov 2006 05:19:56 GMT
Author: jdillon
Date: Sun Nov 12 21:19:56 2006
New Revision: 474158

URL: http://svn.apache.org/viewvc?view=rev&rev=474158
Log:
Add --showenv

Modified:
    geronimo/genesis/trunk/build-harness/build

Modified: geronimo/genesis/trunk/build-harness/build
URL: http://svn.apache.org/viewvc/geronimo/genesis/trunk/build-harness/build?view=diff&rev=474158&r1=474157&r2=474158
==============================================================================
--- geronimo/genesis/trunk/build-harness/build (original)
+++ geronimo/genesis/trunk/build-harness/build Sun Nov 12 21:19:56 2006
@@ -14,6 +14,7 @@
 
 options:
     -h,--help       Display help information
+    --showenv       Display shell environment
     --              Stop option processing
 EOF
     exit 1
@@ -26,8 +27,10 @@
 HARNESS_ROOT=`cd "$DIRNAME" && pwd`
 OUTPUT_DIR="$HARNESS_ROOT/output"
 
+profiles=""
 pomglob=""
 args=""
+showenv="false"
 
 assertOptionArg() {
     if [ "x$2" = "x" ]; then
@@ -42,6 +45,20 @@
             usage
             ;;
         
+        -p|--profile)
+            assertOptionArg $1 $2
+            if [ "x$profiles" = "x" ]; then
+                profiles="$2"
+            else
+                profiles="$profiles,$2"
+            fi
+            shift
+            ;;
+        
+        --showenv)
+            showenv="true"
+            ;;
+        
         --)
             shift
             if [ "x$args" = "x" ]; then
@@ -79,11 +96,17 @@
     usage
 fi
 
+if "$showenv"; then
+    echo "Environment:"
+    set
+fi
+
 # Fire up Maven to do the real work
 mvn --file "$DIRNAME/harness.xml" \
     -Dharness.root="$HARNESS_ROOT" \
     -Doutput.dir="$OUTPUT_DIR" \
     -Dpomglob="$pomglob" \
+    -Dprofiles="$profiles" \
     $args
 
 exit $?



Mime
View raw message