Last change
on this file since 322 was
322,
checked in by hendrikvanantwerpen, 13 years ago
|
Added Play! framework and application with Jena dependency. Working on
the basic things now (login/register), after that start implementing
our data model.
|
File size:
1.2 KB
|
Line | |
---|
1 | :begin |
---|
2 | @echo off |
---|
3 | |
---|
4 | setlocal |
---|
5 | |
---|
6 | set p=%~dp0 |
---|
7 | set p=%p:\=/% |
---|
8 | set buildScript=%~dp0framework\build.bat |
---|
9 | set additionalArgs=%* |
---|
10 | |
---|
11 | if exist "conf\application.conf" goto existingApplication |
---|
12 | |
---|
13 | :noApplication |
---|
14 | java -Dsbt.ivy.home=%~dp0repository -Dplay.home=%~dp0framework -Dsbt.boot.properties="file:///%p%framework/sbt/play.boot.properties" -jar %~dp0framework\sbt\sbt-launch.jar %* |
---|
15 | |
---|
16 | goto end |
---|
17 | |
---|
18 | :existingApplication |
---|
19 | if not "%1" == "clean-all" goto runCommand |
---|
20 | |
---|
21 | :cleanCache |
---|
22 | if exist "target" rmdir /s /q target |
---|
23 | if exist "tmp" rmdir /s /q tmp |
---|
24 | if exist "logs" rmdir /s /q logs |
---|
25 | if exist "project\target" rmdir /s /q project\target |
---|
26 | if exist "project\project" rmdir /s /q project\project |
---|
27 | if exist "dist" rmdir /s /q dist |
---|
28 | |
---|
29 | shift |
---|
30 | set additionalArgs=%additionalArgs:*clean-all=% |
---|
31 | if "%1" == "" goto endWithMessage |
---|
32 | |
---|
33 | :runCommand |
---|
34 | if "%1" == "" goto enterConsole |
---|
35 | |
---|
36 | if "%1" == "debug" goto setDebug |
---|
37 | goto enterConsoleWithCommands |
---|
38 | |
---|
39 | :setDebug |
---|
40 | set JPDA_PORT=9999 |
---|
41 | shift |
---|
42 | set additionalArgs=%additionalArgs:*debug=% |
---|
43 | |
---|
44 | if "%1" == "" goto enterConsole |
---|
45 | |
---|
46 | :enterConsoleWithCommands |
---|
47 | |
---|
48 | call %buildScript% %additionalArgs% |
---|
49 | goto end |
---|
50 | |
---|
51 | :enterConsole |
---|
52 | |
---|
53 | call %buildScript% play |
---|
54 | goto end |
---|
55 | |
---|
56 | :endWithMessage |
---|
57 | echo [info] Done! |
---|
58 | |
---|
59 | :end |
---|
60 | endlocal |
---|
Note: See
TracBrowser
for help on using the repository browser.