Tal Gitelman | 51d50f0 | 2017-12-10 18:55:03 +0200 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | ############################## |
| 4 | # Artifact Validator Tool # |
| 5 | ############################## |
| 6 | |
| 7 | CURRENT_DIR=`pwd` |
| 8 | BASEDIR=$(dirname $0) |
| 9 | |
| 10 | if [ ${BASEDIR:0:1} = "/" ] |
| 11 | then |
| 12 | FULL_PATH=$BASEDIR |
| 13 | else |
| 14 | FULL_PATH=$CURRENT_DIR/$BASEDIR |
| 15 | fi |
| 16 | |
| 17 | source ${FULL_PATH}/baseOperation.sh |
| 18 | |
| 19 | mainClass="org.openecomp.sdc.asdctool.main.ArtifactValidatorTool" |
| 20 | |
| 21 | command="java $JVM_LOG_FILE -cp $JARS $mainClass /var/tmp/ /home/vagrant/catalog-be/config/catalog-be/" |
| 22 | #command="java $JVM_LOG_FILE -cp $JARS $mainClass . /apps/jetty/base/be/config/catalog-be/" |
| 23 | echo $command |
| 24 | |
| 25 | $command |
| 26 | result=$? |
| 27 | |
| 28 | echo "***********************************" |
| 29 | echo "***** $result *********************" |
| 30 | echo "***********************************" |
| 31 | |
| 32 | exit $result |