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 | #echo $FULL_PATH |
| 14 | |
| 15 | LIB_DIR=$FULL_PATH/.. |
| 16 | BIN_DIR=$FULL_PATH/../bin |
| 17 | CONFIG_DIR=$FULL_PATH/../config |
| 18 | |
| 19 | JVM_VERBOSE=-Dverbose |
| 20 | |
| 21 | JVM_LOG_FILE="-Dlogback.configurationFile=${CONFIG_DIR}/logback.xml" |
| 22 | |
| 23 | ###################################################### |
| 24 | |
| 25 | #BINS=`find $BIN_DIR -name "*.jar" | tr "\\n" ":"` |
| 26 | |
| 27 | LIBS=`find $LIB_DIR -name "*.jar" | tr "\\n" ":"` |
| 28 | |
| 29 | JARS=$JARS:$BINS:$LIBS |
| 30 | |
| 31 | |
| 32 | export JARS |
| 33 | export JVM_LOG_FILE |