[jboss-cvs] JBossAS SVN: r101732 - trunk/main/src/bin.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Mar 2 13:11:30 EST 2010


Author: mladen.turk at jboss.com
Date: 2010-03-02 13:11:30 -0500 (Tue, 02 Mar 2010)
New Revision: 101732

Modified:
   trunk/main/src/bin/run.sh
Log:
Escape the quotes when feeding eval

Modified: trunk/main/src/bin/run.sh
===================================================================
--- trunk/main/src/bin/run.sh	2010-03-02 17:52:11 UTC (rev 101731)
+++ trunk/main/src/bin/run.sh	2010-03-02 18:11:30 UTC (rev 101732)
@@ -224,16 +224,16 @@
 while true; do
    if [ "x$LAUNCH_JBOSS_IN_BACKGROUND" = "x" ]; then
       # Execute the JVM in the foreground
-      eval "$JAVA" $JAVA_OPTS \
-         -Djava.endorsed.dirs="$JBOSS_ENDORSED_DIRS" \
-         -classpath "$JBOSS_CLASSPATH" \
+      eval \"$JAVA\" $JAVA_OPTS \
+         -Djava.endorsed.dirs=\"$JBOSS_ENDORSED_DIRS\" \
+         -classpath \"$JBOSS_CLASSPATH\" \
          org.jboss.Main "$@"
       JBOSS_STATUS=$?
    else
       # Execute the JVM in the background
-      eval "$JAVA" $JAVA_OPTS \
-         -Djava.endorsed.dirs="$JBOSS_ENDORSED_DIRS" \
-         -classpath "$JBOSS_CLASSPATH" \
+      eval \"$JAVA\" $JAVA_OPTS \
+         -Djava.endorsed.dirs=\"$JBOSS_ENDORSED_DIRS\" \
+         -classpath \"$JBOSS_CLASSPATH\" \
          org.jboss.Main "$@" "&"
       JBOSS_PID=$!
       # Trap common signals and relay them to the jboss process




More information about the jboss-cvs-commits mailing list