Mercurial > repos > gbcs-embl-heidelberg > je_markdupes
view je @ 1:c6afeeade4f2 draft
use _JAVA_OPTIONS to set default memory limit
author | gbcs-embl-heidelberg |
---|---|
date | Thu, 26 Nov 2015 08:59:16 -0500 |
parents | d39a96961423 |
children | 4ccf1406832d |
line wrap: on
line source
#!/bin/sh # Wrapper around je_1.0_bundle.jar # where are we stored ? DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # echo $DIR # path to jar file to execute, this jar is supposed to be in the same dir as this script JAR_FILE=$DIR"/je_1.0_bundle.jar" # set default _JAVA_OPTIONS _JAVA_OPTIONS=${_JAVA_OPTIONS:-'-Xmx4G -Xms256m'} export _JAVA_OPTIONS # uncomment to change logging level using your own log4j.xml found in $DIR file # OPTS="-Dlog4j.configuration=file:$DIR/log4j.xml" java $OPTS -jar $JAR_FILE "$@" exit $?