[jboss-cvs] JBossAS SVN: r93954 - branches/JBPAPP_4_2_0_GA_CP/system/src/bin.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Sep 23 11:26:26 EDT 2009


Author: permaine
Date: 2009-09-23 11:26:26 -0400 (Wed, 23 Sep 2009)
New Revision: 93954

Modified:
   branches/JBPAPP_4_2_0_GA_CP/system/src/bin/run.sh
Log:
JBPAPP-1682 bin/run.sh omits logic for parsing the long form of the configuration argument

Modified: branches/JBPAPP_4_2_0_GA_CP/system/src/bin/run.sh
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/system/src/bin/run.sh	2009-09-23 14:48:25 UTC (rev 93953)
+++ branches/JBPAPP_4_2_0_GA_CP/system/src/bin/run.sh	2009-09-23 15:26:26 UTC (rev 93954)
@@ -19,19 +19,18 @@
 eval SWITCH=\${$arg_count}
 while [ ! -z "$SWITCH" ]
 do
-
-        if [ "$SWITCH" = "-c" ]; then
-            eval JBOSSCONF=\$`expr $arg_count + 1`
-            CONF_SPECIFIED=true
-            break
-        fi
-
-        echo "$SWITCH" | grep "^\-\-configuration=" > /dev/null
-        if [ $? -eq 0 ]; then
-            JBOSSCONF=`echo $SWITCH|sed 's/\-\-configuration=//'`
-            break
-        fi 
-
+        case "$SWITCH" in
+            -c)
+                eval JBOSSCONF=\$`expr $arg_count + 1`
+                CONF_SPECIFIED=true
+                break
+                ;;
+            --configuration*)                
+                JBOSSCONF=`echo "$SWITCH" | cut -d= -f2`
+                CONF_SPECIFIED=true
+                break
+                ;;
+        esac   
         arg_count=`expr $arg_count + 1`
         eval SWITCH=\${$arg_count}
 done




More information about the jboss-cvs-commits mailing list