killbill-aplcache
Changes
bin/start-server 14(+7 -7)
Details
bin/start-server 14(+7 -7)
diff --git a/bin/start-server b/bin/start-server
index ce254da..ff9b090 100755
--- a/bin/start-server
+++ b/bin/start-server
@@ -30,7 +30,7 @@ DEBUG_OPTS_ECLIPSE_WAIT=" -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend
OPTS_ECLIPSE=" -Xmx2048m -XX:+UseConcMarkSweepGC -XX:MaxPermSize=128m "
-LOG="$SERVER/src/main/resources/log4j.xml"
+LOG="$SERVER/src/main/resources/logback.xml"
# From Argument Options
PORT=8080
@@ -42,16 +42,16 @@ WAIT_DEBUGGER=
function usage() {
echo -n "./start-server "
echo -n " -s (start server)"
- echo -n " -d (debugger turned on)"
+ echo -n " -d (debugger turned on)"
echo -n " -w (along with -d, wait for debugger before starting)"
echo -n " -p <port_number> default 8080"
- echo -n "-h this message"
+ echo -n "-h this message"
exit 1
}
function build_properties() {
local opts=
- local prop=
+ 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="="} { print $2 }'`
@@ -62,9 +62,9 @@ function build_properties() {
function start() {
local opts=`build_properties`
- local start_cmd="mvn $opts -Dlog4j.configuration=file://$LOG -Dning.jmx.http.port=$PORT -Dxn.host.external.port=$PORT -DjettyPort=$PORT -Dxn.server.port=$PORT jetty:run"
+ local start_cmd="mvn $opts -Dlogback.configurationFile=$LOG -Dning.jmx.http.port=$PORT -Dxn.host.external.port=$PORT -DjettyPort=$PORT -Dxn.server.port=$PORT jetty:run"
- local debug_opts_eclipse=
+ local debug_opts_eclipse=
if [ ! -z $DEBUG ]; then
if [ ! -z $WAIT_DEBUGGER ]; then
debug_opts_eclipse=$DEBUG_OPTS_ECLIPSE_WAIT
@@ -73,7 +73,7 @@ function start() {
fi
fi
export MAVEN_OPTS=" -Duser.timezone=UTC $OPTS_ECLIPSE $debug_opts_eclipse"
-
+
echo "Starting IRS MAVEN_OPTS = $MAVEN_OPTS"
echo "$start_cmd"
cd $SERVER