-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathlegacy_test.bat
More file actions
39 lines (31 loc) · 771 Bytes
/
Copy pathlegacy_test.bat
File metadata and controls
39 lines (31 loc) · 771 Bytes
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
@echo off
setlocal enabledelayedexpansion
set MAINCLASS=com.codemanship.refactoring.legacycode.ShippingApp
set JAR=
for /f "delims=" %%f in ('dir /b /s target\*.jar 2^>nul') do (
set JAR=%%f
goto :found
)
:found
if "%JAR%"=="" (
echo No JAR found in target/. Run mvn package first.
exit /b 1
)
echo Using JAR: %JAR%
echo.
echo ================================
echo Running order 1001
echo ================================
java -cp "%JAR%" %MAINCLASS% 1001
echo.
echo ================================
echo Running order 1002
echo ================================
java -cp "%JAR%" %MAINCLASS% 1002
echo.
echo ================================
echo Running order 1003
echo ================================
java -cp "%JAR%" %MAINCLASS% 1003
echo.
pause