-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrailo-build.bat
69 lines (67 loc) · 1.49 KB
/
railo-build.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
69
@echo off
set ANT_HOME=%CD%\build\cfdistro\ant\
if "%1" == "" goto MENU
call build\cfdistro\ant\bin\ant.bat -f build/build.xml %*
goto end
:MENU
cls
echo.
echo railo-build menu
REM echo usage: ${disstro.name}.bat [start|stop|{target}]
echo.
echo 1. Build Railo from Source in GitHub
echo 2. Build and launch
echo 3. Run a specific target
echo 4. Exit
echo.
set choice=
set /p choice= Enter option 1, 2, 3 or 4:
echo.
if not '%choice%'=='' set choice=%choice:~0,1%
if '%choice%'=='1' goto buildRailo
if '%choice%'=='2' goto buildRailoRun
if '%choice%'=='3' goto runTarget
if '%choice%'=='4' goto end
::
echo.
echo.
echo "%choice%" is not a valid option - try again
echo.
pause
goto MENU
::
:buildRailo
cls
call build\cfdistro\ant\bin\ant.bat -f build/build.xml build
goto end
::
:buildRailoRun
cls
call build\cfdistro\ant\bin\ant.bat -f build/build.xml build.and.test
goto end
::
:listTargets
call build\cfdistro\ant\bin\ant.bat -f build/build.xml help
echo press any key ...
pause > nul
goto MENU
::
:updateProject
call build\cfdistro\ant\bin\ant.bat -f build/build.xml project.update
echo press any key ...
pause > nul
goto MENU
::
:runTarget
set target=
set /p target= Enter target name:
if not '%target%'=='' call build\cfdistro\ant\bin\ant.bat -f build/build.xml %target%
echo press any key ...
pause > nul
goto MENU
::
:end
set choice=
echo press any key ...
pause
REM EXIT