forked from archiver-appliance/epicsarchiverap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·35 lines (25 loc) · 711 Bytes
/
run.sh
File metadata and controls
executable file
·35 lines (25 loc) · 711 Bytes
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
#!/bin/bash
# This script sets up the classpath and such to run the benchmarks in this folder.
# It assumes that you are running from within the eclipse project folder
LOG4J_PROPERTIES=log4j.properties
while getopts ":v" Option
# We only have a verbose argument for now.
do
case $Option in
v ) LOG4J_PROPERTIES=log4j.properties.debug
esac
done
shift $(($OPTIND - 1))
if [[ -z ${SCRIPTS_DIR} ]]
then
SCRIPTS_DIR=.
fi
CLASSPATH="${SCRIPTS_DIR}:${SCRIPTS_DIR}/bin"
pushd ${SCRIPTS_DIR}/lib
for file in *.jar
do
CLASSPATH=${CLASSPATH}:${SCRIPTS_DIR}/lib/${file}
done
popd
echo "Classpath is ${CLASSPATH}"
java -Xmx2G -Xms2G -Dlog4j.configuration=${LOG4J_PROPERTIES} -classpath ${CLASSPATH} $@