-
Notifications
You must be signed in to change notification settings - Fork 4
/
DELTA_nix.sh
executable file
·76 lines (60 loc) · 1.58 KB
/
DELTA_nix.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/bash
# Bash Script Example
function buildTools {
cd DELTA.Desktop
echo -e "\n\nBuilding DELTA Tools.\nIf this is your first build, please be patient as a copy of the Gradle bundle will be downloaded..."
./gradlew deltabuild
cd ..
}
function buildDeltaCore {
cd DELTA.Android
./gradlew :delta.core:assemble &&
echo "Building complete. The APK files are located under DELTA.Android/delta.core/build/outputs/apk/"
cd ..
}
function launchExperimentMaker {
cd bin
java -jar delta.desktoptools.experimentmaker.jar
cd ..
}
function launchLogTool {
cd bin
java -jar delta.desktoptools.logtool.jar
cd ..
}
function launchWebService {
cd bin
echo "Note: Delta Web Server settings can be changed in bin/delta_settings.ini"
java -jar delta.webserver.jar
cd..
}
clear
while :
do
cat<<EOF
====================================
DELTA Tools helper utility. Welcome!
------------------------------------
This script will help you build and launch the DELTA Desktop tools.
IMPORTANT: Before attempting to build the DELTA Tools, please ensure that you have the Java 7 JDK installed and configured!
Please enter your choice:
(1) Build DELTA Tools
(2) Build DELTA Core App
(3) Launch Experiment Maker
(4) Launch Log Tool
(5) Start the DELTA Web Service
(6) Quit
------------------------------
EOF
read -n1 -s
case "$REPLY" in
"1") buildTools ;;
"2") buildDeltaCore ;;
"3") launchExperimentMaker ;;
"4") launchLogTool ;;
"5") launchWebService ;;
"6") exit ;;
* ) echo "Invalid option, please try again" ;;
esac
sleep 1
done