summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Venkatesh Kumar <vv770d@att.com>2020-03-23 13:16:50 +0000
committerGerrit Code Review <gerrit@onap.org>2020-03-23 13:16:50 +0000
commit6c7aead6d19861a14fdfdfbbc21ce053ab063926 (patch)
tree025cac02f4f88596d321e580ceee2771b9d4ffb2
parent06ab83c7455d6474548d63a146754748f830922c (diff)
parent13ae3c9a7a43fb06d415c83eb1bf357d86efddcd (diff)
Merge "Fix jar file search."
-rw-r--r--components/datalake-handler/feeder/src/assembly/run.sh13
1 files changed, 8 insertions, 5 deletions
diff --git a/components/datalake-handler/feeder/src/assembly/run.sh b/components/datalake-handler/feeder/src/assembly/run.sh
index a061bfcf..0f9bac41 100644
--- a/components/datalake-handler/feeder/src/assembly/run.sh
+++ b/components/datalake-handler/feeder/src/assembly/run.sh
@@ -6,10 +6,13 @@ echo "start init db ..."
echo "finish init db"
-cmd=`ls feeder-*.jar`
-if [ -z "$cmd" ]; then
- echo "STRING is empty"
- sleep 10000
-else
+cmd=`find . -regex '\./feeder-[0-9]+\.[0-9]+\.[0-9]+[-SNAPSHOT]+\.jar'`
+cmd1= `find . -regex '\./feeder-[0-9]+\.[0-9]+\.[0-9]+\.jar'`
+if [ -n "$cmd" ]; then
+ java -jar $cmd
+elif [ -n "$cmd1" ]; then
java -jar $cmd
+else
+ echo"STRING is empty"
+ sleep 10000
fi