sebdet | df353be | 2020-09-21 22:13:05 +0200 | [diff] [blame^] | 1 | #!/bin/sh |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 2 | |
| 3 | CURRENT_DIR=`pwd` |
| 4 | BASEDIR=$(dirname $0) |
| 5 | |
sebdet | df353be | 2020-09-21 22:13:05 +0200 | [diff] [blame^] | 6 | if [ `echo ${BASEDIR} | cut -c1-1` = "/" ] |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 7 | then |
| 8 | FULL_PATH=$BASEDIR |
| 9 | else |
| 10 | FULL_PATH=$CURRENT_DIR/$BASEDIR |
| 11 | fi |
| 12 | |
sebdet | df353be | 2020-09-21 22:13:05 +0200 | [diff] [blame^] | 13 | . ${FULL_PATH}/baseOperation.sh |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 14 | |
| 15 | mainClass="org.openecomp.sdc.asdctool.main.ExportImportMenu" |
| 16 | |
| 17 | command="java $JVM_LOG_FILE -cp $JARS $mainClass import $@" |
| 18 | echo $command |
| 19 | |
| 20 | $command |
| 21 | result=$? |
| 22 | |
| 23 | echo "***********************************" |
| 24 | echo "***** $result *********************" |
| 25 | echo "***********************************" |
| 26 | |
| 27 | exit $result |
| 28 | |
| 29 | |