Author: doogie
Date: Wed Oct 17 09:23:42 2007
New Revision: 585556
URL:
http://svn.apache.org/viewvc?rev=585556&view=revLog:
Fix handling of paths and args with spaces. Closes
https://issues.apache.org/jira/browse/OFBIZ-1285Modified:
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 "$@"