forked from daqcri/NADEEF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnadeef.sh
executable file
·26 lines (24 loc) · 912 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
#!/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; }
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
cmd='java -cp out/bin/*:examples/:out/test qa.qcri.nadeef.console.Console'
exec $cmd
elif [ "$1" == "dashboard" ]; then
cmd='java -cp out/bin/*:. qa.qcri.nadeef.web.NadeefStart'
exec $cmd
else
echo 'Usage: nadeef.sh [OPTIONS]'
echo 'Options are:'
echo ' console : start the NADEEF console.'
echo ' dashboard : start the NADEEF dashboard.'
fi
else
cmd='java -cp out/bin/*:examples/:out/test qa.qcri.nadeef.console.Console'
exec $cmd
fi
fi