sebdet | df353be | 2020-09-21 22:13:05 +0200 | [diff] [blame] | 1 | #!/bin/sh |
Michael Lando | 39a4e0c | 2017-07-18 20:46:42 +0300 | [diff] [blame] | 2 | |
| 3 | ############################## |
| 4 | # Validation Tool # |
| 5 | ############################## |
| 6 | |
| 7 | CURRENT_DIR=`pwd` |
| 8 | BASEDIR=$(dirname $0) |
| 9 | |
sebdet | df353be | 2020-09-21 22:13:05 +0200 | [diff] [blame] | 10 | if [ `echo ${BASEDIR} | cut -c1-1` = "/" ] |
Michael Lando | 39a4e0c | 2017-07-18 20:46:42 +0300 | [diff] [blame] | 11 | then |
| 12 | FULL_PATH=$BASEDIR |
| 13 | else |
| 14 | FULL_PATH=$CURRENT_DIR/$BASEDIR |
| 15 | fi |
| 16 | |
sebdet | df353be | 2020-09-21 22:13:05 +0200 | [diff] [blame] | 17 | . ${FULL_PATH}/baseOperation.sh |
Michael Lando | 39a4e0c | 2017-07-18 20:46:42 +0300 | [diff] [blame] | 18 | |
| 19 | mainClass="org.openecomp.sdc.asdctool.main.ValidationTool" |
| 20 | |
Avi Ziv | f5854fd | 2017-07-31 15:50:46 +0300 | [diff] [blame] | 21 | #command="java $JVM_LOG_FILE -cp $JARS $mainClass reportOutput.txt /home/vagrant/catalog-be/config/catalog-be/" |
| 22 | command="java $JVM_LOG_FILE -cp $JARS $mainClass . /apps/jetty/base/be/config/catalog-be/" |
Michael Lando | 39a4e0c | 2017-07-18 20:46:42 +0300 | [diff] [blame] | 23 | echo $command |
| 24 | |
| 25 | $command |
| 26 | result=$? |
| 27 | |
| 28 | echo "***********************************" |
| 29 | echo "***** $result *********************" |
| 30 | echo "***********************************" |
| 31 | |
| 32 | exit $result |