-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrun
More file actions
executable file
·35 lines (26 loc) · 816 Bytes
/
run
File metadata and controls
executable file
·35 lines (26 loc) · 816 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
34
35
#!/bin/bash
# Figure out where it is installed
FWDIR="$(cd `dirname $0`; pwd)"
# Export this as Yosemite_HOME
export YOSEMITE_HOME="$FWDIR"
RUNNER=java
if [ -z "$YOSEMITE_MEM" ] ; then
YOSEMITE_MEM="512m"
fi
export YOSEMITE_MEM
# Set JAVA_OPTS to be able to load native libraries and to set heap size
JAVA_OPTS="$YOSEMITE_JAVA_OPTS"
JAVA_OPTS+=" -Xms$YOSEMITE_MEM -Xmx$YOSEMITE_MEM"
# Load extra JAVA_OPTS from conf/java-opts, if it exists
if [ -e $FWDIR/conf/java-opts ] ; then
JAVA_OPTS+=" `cat $FWDIR/conf/java-opts`"
fi
export JAVA_OPTS
CORE_DIR="$FWDIR"
# Build up classpath
CLASSPATH="$YOSEMITE_CLASSPATH"
CLASSPATH+=":$FWDIR/conf"
CLASSPATH+=":$CORE_DIR/target/classes"
CLASSPATH+=":$CORE_DIR/target/coflowsim-0.2.0-SNAPSHOT.jar"
export CLASSPATH
exec "$RUNNER" -cp "$CLASSPATH" $EXTRA_ARGS "$@"