From e49a40f43af3b4a194b5095a2acbd4e066173181 Mon Sep 17 00:00:00 2001 From: Balachandran Sivakumar Date: Wed, 7 Oct 2015 14:52:08 +0530 Subject: [PATCH 1/3] Added $KOBALT_HOME/kobaltw The wrapper was looking for kobalt/wrapper/kobalt-wrapper.jar in the current dir. It should actually be $KOBALT_HOME/kobalt/wrapper/kobalt-wrapper.jar --- kobaltw | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kobaltw b/kobaltw index 11d9d819..4ce0a3c0 100755 --- a/kobaltw +++ b/kobaltw @@ -1,2 +1,2 @@ -java -jar kobalt/wrapper/kobalt-wrapper.jar $* +java -jar $KOBALT_HOME/kobalt/wrapper/kobalt-wrapper.jar $* From 483e69e410b7ee728a23bdcd1fd025c6c7b918ea Mon Sep 17 00:00:00 2001 From: Balachandran Sivakumar Date: Wed, 7 Oct 2015 15:27:34 +0530 Subject: [PATCH 2/3] Initialise KOBALT_HOME to current dir if it is not set There can be a case where the KOBALT_HOME is not set. In that case retain the current behaviour of looking into the current dir. --- kobaltw | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kobaltw b/kobaltw index 4ce0a3c0..9726da2a 100755 --- a/kobaltw +++ b/kobaltw @@ -1,2 +1,5 @@ +if [ -z $KOBALT_HOME ]; then + KOBALT_HOME="." +fi java -jar $KOBALT_HOME/kobalt/wrapper/kobalt-wrapper.jar $* From 0482e0fcaee3462f67528a84be009984e5c9e58f Mon Sep 17 00:00:00 2001 From: Balachandran Sivakumar Date: Wed, 7 Oct 2015 23:14:24 +0530 Subject: [PATCH 3/3] Use dirname $0 to get the path --- kobaltw | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/kobaltw b/kobaltw index 9726da2a..c1c1d7e2 100755 --- a/kobaltw +++ b/kobaltw @@ -1,5 +1,2 @@ -if [ -z $KOBALT_HOME ]; then - KOBALT_HOME="." -fi -java -jar $KOBALT_HOME/kobalt/wrapper/kobalt-wrapper.jar $* +java -jar $(dirname $0)/kobalt/wrapper/kobalt-wrapper.jar $*