-
Notifications
You must be signed in to change notification settings - Fork 224
/
run.sh
37 lines (31 loc) · 800 Bytes
/
run.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
#!/bin/bash
MVNW="./mvnw"
function simulator {
"$MVNW" "verify" "-Psimulator" "-DskipTests" "-Dcodename1.platform=javase" "-e"
}
function desktop {
"$MVNW" "verify" "-Prun-desktop" "-DskipTests" "-Dcodename1.platform=javase" "-e"
}
function settings {
"$MVNW" "cn:settings" "-e"
}
function update {
"$MVNW" "cn:update" "-U" "-e"
}
function help {
"echo" "-e" "run.sh [COMMAND]"
"echo" "-e" "Commands:"
"echo" "-e" " simulator"
"echo" "-e" " Runs app using Codename One Simulator"
"echo" "-e" " desktop"
"echo" "-e" " Runs app as a desktop app."
"echo" "-e" " settings"
"echo" "-e" " Opens Codename One settings"
"echo" "-e" " update"
"echo" "-e" " Update Codename One libraries"
}
CMD=$1
if [ "$CMD" == "" ]; then
CMD="simulator"
fi
"$CMD"