Test: add java-loop demo with build and run scripts, ignore class artifacts

This commit is contained in:
xiaozhou233 committed 2026-08-15 11:31:21 +08:00
1 parent 841c0e5c2f
commit 6479966472
4 files changed
+44

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
@echo off
setlocal
cd /d "%~dp0"
if not exist build\loop.class (
echo [ERROR] Build output not found. Run build.bat first.
exit /b 1
)
java -cp build loop
if errorlevel 1 (
echo [ERROR] Run failed.
exit /b 1
)
endlocal