Michael Lando | 75aacbb | 2017-07-17 21:12:03 +0300 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | ############################## |
| 4 | # Data Migration |
| 5 | ############################## |
| 6 | |
Tal Gitelman | 51d50f0 | 2017-12-10 18:55:03 +0200 | [diff] [blame] | 7 | # in 1802E we do not want to execute automatic post process |
Michael Lando | a544510 | 2018-03-04 14:53:33 +0200 | [diff] [blame] | 8 | #exit 0 |
Tal Gitelman | 51d50f0 | 2017-12-10 18:55:03 +0200 | [diff] [blame] | 9 | |
Michael Lando | 75aacbb | 2017-07-17 21:12:03 +0300 | [diff] [blame] | 10 | CURRENT_DIR=`pwd` |
| 11 | BASEDIR=$(dirname $0) |
| 12 | |
| 13 | if [ ${BASEDIR:0:1} = "/" ] |
| 14 | then |
| 15 | FULL_PATH=$BASEDIR |
| 16 | else |
| 17 | FULL_PATH=$CURRENT_DIR/$BASEDIR |
| 18 | fi |
| 19 | |
| 20 | source ${FULL_PATH}/baseOperation.sh |
| 21 | |
| 22 | mainClass="org.openecomp.sdc.asdctool.migration.main.MigrationMenu" |
| 23 | |
| 24 | command="java $JVM_LOG_FILE -Xmx6000M -cp $JARS $mainClass $@" |
| 25 | echo $command |
| 26 | |
| 27 | $command |
| 28 | result=$? |
| 29 | |
| 30 | |
| 31 | |
| 32 | echo "***********************************" |
| 33 | echo "***** $result *********************" |
| 34 | echo "***********************************" |
| 35 | |
| 36 | exit $result |
| 37 | |
| 38 | |
| 39 | |