svn commit: r585556 - /ofbiz/trunk/startofbiz.sh

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r585556 - /ofbiz/trunk/startofbiz.sh

doogie-3
Author: doogie
Date: Wed Oct 17 09:23:42 2007
New Revision: 585556

URL: http://svn.apache.org/viewvc?rev=585556&view=rev
Log:
Fix handling of paths and args with spaces.  Closes
https://issues.apache.org/jira/browse/OFBIZ-1285

Modified:
    ofbiz/trunk/startofbiz.sh

Modified: ofbiz/trunk/startofbiz.sh
URL: http://svn.apache.org/viewvc/ofbiz/trunk/startofbiz.sh?rev=585556&r1=585555&r2=585556&view=diff
==============================================================================
--- ofbiz/trunk/startofbiz.sh (original)
+++ ofbiz/trunk/startofbiz.sh Wed Oct 17 09:23:42 2007
@@ -41,13 +41,12 @@
 
 # location of java executable
 if [ -f "$JAVA_HOME/bin/java" ]; then
-  JAVA=$JAVA_HOME/bin/java
+  JAVA="$JAVA_HOME/bin/java"
 else
   JAVA=java
 fi
 
 # start ofbiz
 #$JAVA $VMARGS -jar ofbiz.jar $* >>$OFBIZ_LOG 2>>$OFBIZ_LOG&
-$JAVA $VMARGS -jar ofbiz.jar $*
-exit 0
+exec "$JAVA" $VMARGS -jar ofbiz.jar "$@"