You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by li...@apache.org on 2016/12/07 04:29:27 UTC

[10/50] [abbrv] kylin git commit: KYLIN-2195 could run get-properties.sh in source code dir

KYLIN-2195 could run get-properties.sh in source code dir


Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/8506e4d4
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/8506e4d4
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/8506e4d4

Branch: refs/heads/master-hbase1.x
Commit: 8506e4d4f75fbbda518997cac97e3333229fa5a0
Parents: bda8787
Author: lidongsjtu <li...@apache.org>
Authored: Tue Nov 29 18:24:07 2016 +0800
Committer: lidongsjtu <li...@apache.org>
Committed: Tue Nov 29 18:24:07 2016 +0800

----------------------------------------------------------------------
 build/bin/get-properties.sh | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/8506e4d4/build/bin/get-properties.sh
----------------------------------------------------------------------
diff --git a/build/bin/get-properties.sh b/build/bin/get-properties.sh
index 170442d..0fa4f6f 100755
--- a/build/bin/get-properties.sh
+++ b/build/bin/get-properties.sh
@@ -19,13 +19,21 @@
 
 source $(cd -P -- "$(dirname -- "$0")" && pwd -P)/header.sh
 
+
 if [ $# != 1 ]
 then
     echo 'invalid input'
     exit -1
 fi
 
-job_jar=$(ls $KYLIN_HOME/lib/kylin-job-*.jar)
-tool_jar=$(ls $KYLIN_HOME/tool/kylin-tool-*.jar)
+if [[ $CI_MODE == 'true' ]]; then
+    cd $dir
+    job_jar=$(ls ../../assembly/target/kylin-*-job.jar)
+    tool_jar=$(ls ../../tool/target/kylin-tool-*.jar|grep -v assembly)
+else
+    job_jar=$(ls $KYLIN_HOME/lib/kylin-job-*.jar)
+    tool_jar=$(ls $KYLIN_HOME/tool/kylin-tool-*.jar)
+fi
+
 result=`java -cp $job_jar:$tool_jar org.apache.kylin.tool.KylinConfigCLI $1 2>/dev/null`
 echo "$result"