forked from ICIJ/datashare
-
Notifications
You must be signed in to change notification settings - Fork 0
/
launchBack.sh
executable file
·17 lines (14 loc) · 885 Bytes
/
launchBack.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
export DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
export JDWP_TRANSPORT_PORT=${JDWP_TRANSPORT_PORT:-8090}
export JAVA_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,address=$JDWP_TRANSPORT_PORT,suspend=n \
-Djava.net.preferIPv4Stack=true \
-Ddatashare.loghost=udp:localhost \
-Dlogback.configurationFile=logback.xml \
-Djavax.net.ssl.trustStorePassword=changeit"
DATASHARE_POM_VERSION=$(head $DIR/pom.xml | grep '<version>[0-9.]\+' | sed 's/<version>\([0-9a-z.\-]\+\)<\/version>/\1/g' | tr -d '[:space:]')
export DATASHARE_HOME=$DIR
export DATASHARE_VERSION=${DATASHARE_VERSION:-$DATASHARE_POM_VERSION}
export DATASHARE_JAR=${DATASHARE_JAR:-$DIR/datashare-dist/target/datashare-dist-${DATASHARE_VERSION}-all.jar}
export DATASHARE_SYNC_NLP_MODELS=${DATASHARE_SYNC_NLP_MODELS:-true}
./datashare-dist/src/main/deb/bin/datashare "$@"