forked from daqcri/NADEEF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nadeef.sh
executable file
·37 lines (32 loc) · 1001 Bytes
/
nadeef.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
#!/bin/bash
export BuildVersion='1.0.1019'
type -P javac > /dev/null 2>&1 || { echo "JDK cannot be found, please check your PATH var."; exit 1; }
function run_console()
{
cmd="java $JAVA_ARGS -cp out/bin/*:examples/:out/test qa.qcri.nadeef.console.Console"
exec $cmd
}
function run_dashboard()
{
cmd="java $JAVA_ARGS -cp out/bin/*:. qa.qcri.nadeef.web.NadeefStart"
exec $cmd
}
if ! [ -d "out" ]; then
echo NADEEF is not yet compiled, please first run 'ant' to build it.
else
if [ $# -eq 1 ]; then
if [ "$1" == "console" ]; then
run_console
elif [ "$1" == "dashboard" ]; then
run_dashboard
else
echo 'Usage: nadeef.sh [OPTIONS]'
echo 'Options are:'
echo ' console : start the NADEEF console.'
echo ' dashboard : start the NADEEF dashboard.'
echo 'Environment variables considered: JAVA_ARGS. Example: JAVA_ARGS="-Xmx15G"'
fi
else
run_console
fi
fi