forked from skinny-framework/skinny-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
skinny.bat
68 lines (54 loc) · 991 Bytes
/
skinny.bat
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
@echo off
REM
REM skinny command for Windows
REM
set COMMAND=%1
IF NOT DEFINED COMMAND (
GOTO :message
)
IF %COMMAND%==run (
sbt "~;container:stop;container:start"
GOTO :end
)
IF %COMMAND%==clean (
sbt clean
GOTO :end
)
IF %COMMAND%==update (
sbt update
GOTO :end
)
IF %COMMAND%==console (
sbt console
GOTO :end
)
IF %COMMAND%==compile (
sbt compile
GOTO :end
)
IF %COMMAND%==test (
sbt test
GOTO :end
)
IF %COMMAND%==test-only (
sbt test-only %2
GOTO :end
)
IF %COMMAND%==package (
sbt package
GOTO :end
)
REM Didn't select command.
:message
echo.
echo Usage: skinny [COMMAND] [OPTIONS]...
echo.
echo clean : will clear target directory
echo run : will run Skinny app for local development
echo compile : will compile all the classes
echo update : will update dependencies
echo test : will run all the tests
echo test-only : will run the specified test
echo package : will create *.war file to deploy
echo.
:end