forked from eclipse-vertx/vert.x
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvmm
executable file
·22 lines (17 loc) · 808 Bytes
/
vmm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
# This script lives on the vert.x install directory which should be on the users PATH
# It is called like java e.g. vertx-java -cp "somepath" org.foo.MyMainClass
# We need to figure out what this directory is relative to wherever this is called from. Remember this dir is on the path
# so this script can be called from anywhere
PRG="$0"
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`/"$link"
fi
done
DIRNAME=`dirname "$PRG"`
jruby -J-Djava.util.logging.config.file=$DIRNAME/src/main/resources/logging.properties -I$DIRNAME/src/main/resources/jars:$DIRNAME/src/main/ruby:$DIRNAME/target -rvert.x.jar -rnetty.jar -rhigh-scale-lib.jar src/main/ruby/vmm/cli.rb "$@"