forked from eclipse-vertx/vert.x
/
vertx-dev
executable file
·42 lines (34 loc) · 1.2 KB
/
vertx-dev
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
#!/bin/sh
# This script is used only for running vert.x to run examples from the development source tree
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
# The path to this script from the place it was called
DIRNAME=`dirname "$PRG"`
# The absolute path of this script
CURRDIR=`pwd`
SCRIPTDIR=`cd $DIRNAME;pwd`
cd $CURRDIR
CLASSPATH=\
$DIRNAME/../../conf:\
$DIRNAME/../../target/vert.x-core.jar:\
$DIRNAME/../../target/vert.x-platform.jar:\
$DIRNAME/../../lib/main/netty.jar:\
$DIRNAME/../../lib/main/jackson-core-asl-1.9.4.jar:\
$DIRNAME/../../lib/main/jackson-mapper-asl-1.9.4.jar:\
$DIRNAME/../../lib/main/hazelcast-1.9.4.4.jar:\
$DIRNAME/../../lib/main/jruby.jar:\
$DIRNAME/../../lib/main/js.jar:\
$DIRNAME/../../lib/main/groovy-all-1.8.6.jar:\
$DIRNAME/../../src/main/ruby:\
$DIRNAME/../../src/main/javascript
MODS_DIR=$SCRIPTDIR/../../target/dist-build/vert.x-1.0.beta6/mods
java -Djava.util.logging.config.file=$DIRNAME/../../conf/logging.properties -Djruby.home=$JRUBY_HOME \
-Dvertx.mods=$MODS_DIR -cp $CLASSPATH org.vertx.java.deploy.impl.cli.VertxMgr "$@"