killbill-aplcache

start-server: simplify script Signed-off-by: Pierre-Alexandre

3/13/2014 5:16:19 PM

Changes

bin/start-server 14(+1 -13)

Details

bin/start-server 14(+1 -13)

diff --git a/bin/start-server b/bin/start-server
index 77711fd..438560f 100755
--- a/bin/start-server
+++ b/bin/start-server
@@ -51,22 +51,10 @@ function usage() {
     exit 1
 }
 
-function build_properties() {
-    local opts=
-    local prop=
-    for prop in `cat  $PROPERTIES | grep =`; do
-        local k=`echo $prop | awk 'BEGIN {FS="="} { print $1 }'`
-        local v=`echo $prop | awk 'BEGIN {FS="="} {for (i=2; i<NF; i++) printf $i "="; print $NF}'`
-        opts="$opts -D$k=$v"
-    done
-    echo $opts
-}
-
 function start() {
     mkdir -p $LOG_DIR
 
-    local opts=`build_properties`
-    local start_cmd="mvn $opts -Dlogback.configurationFile=$LOG jetty:run"
+    local start_cmd="mvn -Dorg.killbill.server.properties=file://$PROPERTIES -Dlogback.configurationFile=$LOG jetty:run"
 
     local debug_opts_eclipse=
     if [ ! -z $DEBUG ]; then