#1219 java.options with '=' sign

vkuzkokov Sun 19 Sep 2010

I appears that I can't pass java parameters containing =.

diff -r 2a8974a84701 bin/fanlaunch
--- a/bin/fanlaunch     Thu Sep 16 09:11:59 2010 -0400
+++ b/bin/fanlaunch     Sun Sep 19 21:36:45 2010 +0700
@@ -65,7 +65,7 @@
 # read a single line property from $FAN_HOME/etc/sys/config.props
 function read_prop()
 {
-  eval "$1='`sed '/^\#/d' "$FAN_HOME/etc/sys/config.props" | sed '/^\/\//d' | grep \"$2=\"  | tail -n 1 | sed 's/^.*=//;s/^[[:space:]]*//;s/[[:space:]]*$//'`'"
+  eval "$1='`sed '/^\#/d' "$FAN_HOME/etc/sys/config.props" | sed '/^\/\//d' | grep \"$2=\"  | tail -n 1 | sed 's/^[^=]*=//;s/^[[:space:]]*//;s/[[:space:]]*$//'`'"
 }
 
 # Launcher function

That pretty much solves the issue.

katox Sun 19 Sep 2010

my bad, thx for correction :)

brian Mon 20 Sep 2010

I pushed that patch

thanks

Login or Signup to reply.