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