diff options
| author | Kostya <mail@sartin.in> | 2026-08-06 14:42:43 +0000 |
|---|---|---|
| committer | Kostya <mail@sartin.in> | 2026-08-06 14:42:43 +0000 |
| commit | c3946151d543f568983f1ba16a963ea7dd4b9055 (patch) | |
| tree | c3390a0c37332b0bf7b2049f3de13cd1f900629d /run.bat | |
| download | guess-market-c3946151d543f568983f1ba16a963ea7dd4b9055.tar.gz guess-market-c3946151d543f568983f1ba16a963ea7dd4b9055.tar.xz guess-market-c3946151d543f568983f1ba16a963ea7dd4b9055.zip | |
template initial commit
Diffstat (limited to 'run.bat')
| -rw-r--r-- | run.bat | 16 |
1 files changed, 16 insertions, 0 deletions
| @@ -0,0 +1,16 @@ | |||
| 1 | @echo off | ||
| 2 | :: clean old binaries | ||
| 3 | rmdir /s /q bin | ||
| 4 | mkdir bin | ||
| 5 | |||
| 6 | :: compile source files and include libraries | ||
| 7 | javac -d "bin/classes" -cp "lib/*" src/main/java/com/example/App.java | ||
| 8 | |||
| 9 | :: run the application if compilation succeeded | ||
| 10 | if %errorlevel% equ 0 ( | ||
| 11 | echo --- Running Application --- | ||
| 12 | java -cp "bin/classes;lib/*" com.example.App | ||
| 13 | ) else ( | ||
| 14 | echo Compilation failed. | ||
| 15 | ) | ||
| 16 | pause | ||