Michael Lando | 75aacbb | 2017-07-17 21:12:03 +0300 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | ############################## |
| 4 | # Data Migration |
| 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.migration.main.MigrationMenu" |
| 20 | |
| 21 | command="java $JVM_LOG_FILE -Xmx6000M -cp $JARS $mainClass $@" |
| 22 | echo $command |
| 23 | |
| 24 | $command |
| 25 | result=$? |
| 26 | |
| 27 | |
| 28 | |
| 29 | echo "***********************************" |
| 30 | echo "***** $result *********************" |
| 31 | echo "***********************************" |
| 32 | |
| 33 | exit $result |
| 34 | |
| 35 | |
| 36 | |