-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompile-all.bat
More file actions
52 lines (48 loc) · 1.23 KB
/
Copy pathcompile-all.bat
File metadata and controls
52 lines (48 loc) · 1.23 KB
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
@echo off
echo ========================================
echo Compiling Socket Programming Assignment
echo ========================================
echo.
echo Compiling Task 1: Hostname to IP Converter...
cd task1-hostname-converter
javac src/HostnameToIP.java
if %errorlevel% neq 0 (
echo ERROR: Task 1 compilation failed
exit /b 1
)
echo Task 1 compiled successfully
cd ..
echo.
echo Compiling Task 2: Ping-Pong Application...
cd task2-ping-pong
javac src/server/PingPongServer.java
if %errorlevel% neq 0 (
echo ERROR: Task 2 server compilation failed
exit /b 1
)
javac src/client/PingPongClient.java
if %errorlevel% neq 0 (
echo ERROR: Task 2 client compilation failed
exit /b 1
)
echo Task 2 compiled successfully
cd ..
echo.
echo Compiling Task 3: Uppercase Converter...
cd task3-uppercase-converter
javac src/server/UppercaseServer.java
if %errorlevel% neq 0 (
echo ERROR: Task 3 server compilation failed
exit /b 1
)
javac src/client/UppercaseClient.java
if %errorlevel% neq 0 (
echo ERROR: Task 3 client compilation failed
exit /b 1
)
echo Task 3 compiled successfully
cd ..
echo.
echo ========================================
echo All tasks compiled successfully!
echo ========================================