Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 60 lines (42 sloc) 1.18 kb
1580469 @guillaumebort Make it work on Windows
guillaumebort authored
1 :begin
2 @echo off
3
31504ff @guillaumebort Fix batch scripts for windows
guillaumebort authored
4 setlocal
5
0c68ace @guillaumebort Fix the dist task (with a new package script)
guillaumebort authored
6 set p=%~dp0
7 set p=%p:\=/%
31504ff @guillaumebort Fix batch scripts for windows
guillaumebort authored
8 set buildScript=%~dp0framework\build.bat
b72448f @guillaumebort Fix windows play.bat script
guillaumebort authored
9 set additionalArgs=%*
0c68ace @guillaumebort Fix the dist task (with a new package script)
guillaumebort authored
10
1580469 @guillaumebort Make it work on Windows
guillaumebort authored
11 if exist "conf\application.conf" goto existingApplication
12
13 :noApplication
f0213d1 @pk11 fixing sbt version in bat files
pk11 authored
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 %*
1580469 @guillaumebort Make it work on Windows
guillaumebort authored
15
16 goto end
17
18 :existingApplication
31504ff @guillaumebort Fix batch scripts for windows
guillaumebort authored
19 if not "%1" == "clean-all" goto runCommand
1580469 @guillaumebort Make it work on Windows
guillaumebort authored
20
21 :cleanCache
31504ff @guillaumebort Fix batch scripts for windows
guillaumebort authored
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
b72448f @guillaumebort Fix windows play.bat script
guillaumebort authored
30 set additionalArgs=%additionalArgs:*clean-all=%
31504ff @guillaumebort Fix batch scripts for windows
guillaumebort authored
31 if "%1" == "" goto endWithMessage
1580469 @guillaumebort Make it work on Windows
guillaumebort authored
32
362daa7 @guillaumebort Prepare the dist task
guillaumebort authored
33 :runCommand
34 if "%1" == "" goto enterConsole
35
31504ff @guillaumebort Fix batch scripts for windows
guillaumebort authored
36 if "%1" == "debug" goto setDebug
37 goto enterConsoleWithCommands
38
39 :setDebug
40 set JPDA_PORT=9999
41 shift
b72448f @guillaumebort Fix windows play.bat script
guillaumebort authored
42 set additionalArgs=%additionalArgs:*debug=%
31504ff @guillaumebort Fix batch scripts for windows
guillaumebort authored
43
44 if "%1" == "" goto enterConsole
45
46 :enterConsoleWithCommands
47
b72448f @guillaumebort Fix windows play.bat script
guillaumebort authored
48 call %buildScript% %additionalArgs%
362daa7 @guillaumebort Prepare the dist task
guillaumebort authored
49 goto end
50
1580469 @guillaumebort Make it work on Windows
guillaumebort authored
51 :enterConsole
362daa7 @guillaumebort Prepare the dist task
guillaumebort authored
52
31504ff @guillaumebort Fix batch scripts for windows
guillaumebort authored
53 call %buildScript% play
54 goto end
55
56 :endWithMessage
57 echo [info] Done!
1580469 @guillaumebort Make it work on Windows
guillaumebort authored
58
59 :end
31504ff @guillaumebort Fix batch scripts for windows
guillaumebort authored
60 endlocal
Something went wrong with that request. Please try again.