source: Dev/branches/play-2.0.1/play.bat @ 322

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
4setlocal
5
6set p=%~dp0
7set p=%p:\=/%
8set buildScript=%~dp0framework\build.bat
9set additionalArgs=%*
10
11if exist "conf\application.conf" goto existingApplication
12
13:noApplication
14java -Dsbt.ivy.home=%~dp0repository -Dplay.home=%~dp0framework -Dsbt.boot.properties="file:///%p%framework/sbt/play.boot.properties" -jar %~dp0framework\sbt\sbt-launch.jar %*
15
16goto end
17
18:existingApplication
19if not "%1" == "clean-all" goto runCommand
20
21:cleanCache
22if exist "target" rmdir /s /q target
23if exist "tmp" rmdir /s /q tmp
24if exist "logs" rmdir /s /q logs
25if exist "project\target" rmdir /s /q project\target
26if exist "project\project" rmdir /s /q project\project
27if exist "dist" rmdir /s /q dist
28
29shift
30set additionalArgs=%additionalArgs:*clean-all=%
31if "%1" == "" goto endWithMessage
32
33:runCommand
34if "%1" == "" goto enterConsole
35
36if "%1" == "debug" goto setDebug
37goto enterConsoleWithCommands
38
39:setDebug
40set JPDA_PORT=9999
41shift
42set additionalArgs=%additionalArgs:*debug=%
43
44if "%1" == "" goto enterConsole
45
46:enterConsoleWithCommands
47
48call %buildScript% %additionalArgs%
49goto end
50
51:enterConsole
52
53call %buildScript% play
54goto end
55
56:endWithMessage
57echo [info] Done!
58
59:end
60endlocal
Note: See TracBrowser for help on using the repository browser.