This repository has been archived by the owner on Dec 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
cfeclipse-releng.bat
83 lines (81 loc) · 1.84 KB
/
cfeclipse-releng.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
@echo off
set ANT_HOME=%CD%\build\cfdistro\ant\
if "%1" == "" goto MENU
set var1=%1
SHIFT
:Loop
IF "%1"=="" GOTO Continue
SET var1=%var1% -D%1%
SHIFT
SET var1=%var1%=%1%
SHIFT
GOTO Loop
:Continue
call build\cfdistro\ant\bin\ant.bat -nouserlib -f build/build.xml %var1%
goto end
:MENU
cls
echo.
echo cfeclipse-releng menu
REM echo usage: cfeclipse-releng.bat [start|stop|{target}]
echo.
echo 1. Start server and open browser
echo 2. Stop server
echo 3. List available targets
echo 4. Update project
echo 5. Run Target
echo 6. Quit
echo.
set choice=
set /p choice= Enter option 1, 2, 3, 4, 5 or 6 :
echo.
if not '%choice%'=='' set choice=%choice:~0,1%
if '%choice%'=='1' goto startServer
if '%choice%'=='2' goto stopServer
if '%choice%'=='3' goto listTargets
if '%choice%'=='4' goto updateProject
if '%choice%'=='5' goto runTarget
if '%choice%'=='6' goto end
::
echo.
echo.
echo "%choice%" is not a valid option - try again
echo.
pause
goto MENU
::
:startServer
cls
call build\cfdistro\ant\bin\ant.bat -f build/build.xml build.start.launch
echo to stop the server, run this again or run: cfeclipse-releng.bat stop
goto end
::
:stopServer
call build\cfdistro\ant\bin\ant.bat -f build/build.xml server.stop
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