-
Notifications
You must be signed in to change notification settings - Fork 34
/
prank.sh
executable file
·48 lines (31 loc) · 1.13 KB
/
prank.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/env bash
#
# script for running development builds in-place from this directory
#
# copy misc/local-env.sh to this directory
#
. local-env.sh
# echo JAVA_LOCALENV_PARAMS = $JAVA_LOCALENV_PARAMS
# echo PRANK_LOCALENV_PARAMS = $PRANK_LOCALENV_PARAMS
#-XX: UseG1GC
#-XX: UseConcMarkSweepGC
export JAVA_OPTS="$JAVA_OPTS"
export JAVA_OPTS="$JAVA_OPTS $JAVA_LOCALENV_PARAMS"
THIS_SCRIPT_DIR_REL_PATH="$( dirname "${BASH_SOURCE[0]}" )"
export POCKET_RANK_BASE_DIR="$THIS_SCRIPT_DIR_REL_PATH/distro"
if [[ "$OSTYPE" = msys* ]] ; then
PATH_SEPARATOR=';' # for win ... we want this script to run on Windows with MSYS / Git Bash
else
PATH_SEPARATOR=':' # for unix
fi
CLASSPATH="${POCKET_RANK_BASE_DIR}/bin/p2rank.jar${PATH_SEPARATOR}${POCKET_RANK_BASE_DIR}/bin/lib/*"
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
JAVACMD="$JAVA_HOME/bin/java"
else
JAVACMD="java"
fi
PARAMS="$PRANK_LOCALENV_PARAMS"
#CMD="$JAVACMD $JAVA_OPTS -cp ${CLASSPATH} cz.siret.prank.program.Main ${PARAMS} $@"
#echo " " $CMD
"$JAVACMD" $JAVA_OPTS -cp "${CLASSPATH}" cz.siret.prank.program.Main ${PARAMS} "$@"