-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathlaunch-dev.bat
44 lines (31 loc) · 993 Bytes
/
launch-dev.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
@echo off
set mavenInput="%*"
if "%*" == "" (
echo No Maven arguments skipping maven build
) else (
echo Running with user input: %mavenInput%
echo Running maven build on available project
call mvn -v >con
cd ..
for %%s in ("-model" "-kjar" "business-application-service") do (
cd *%%s
echo ===============================================================================
for %%I in (.) do echo %%~nxI
echo ===============================================================================
if exist "%M3_HOME%\bin\mvn.bat" (
call %M3_HOME%\bin\mvn.bat %* >con
) else (
call mvn %* >con
)
cd ..
)
)
goto :startapp
:startapp
echo "Launching the application in development mode - requires connection to controller (workbench)"
cd business-application-service
cd target
for /f "delims=" %%x in ('dir /od /b *.jar') do set latestjar=%%x
cd ..
call java -Dspring.profiles.active=dev -jar target\%latestjar%
:end