GenJavaPojo.bat 653 B

123456789101112131415161718192021222324
  1. @echo off
  2. setlocal
  3. REM Source JSON and XLS directories
  4. set SRC_JSON=D:\project\FishConfig\GameConfig\json
  5. set SRC_XLS=D:\project\FishConfig\GameConfig
  6. REM Target Java package (align with target path)
  7. set PKG=vip.metadev.module.business.pogo
  8. REM Output Java source root (module-business project)
  9. set OUT_DIR=D:\project\game-framework\game-module-business\src\main\java
  10. REM Run generator (forward optional table names)
  11. node "%~dp0gen_pojo_from_xls_json.js" "%SRC_JSON%" "%SRC_XLS%" "%PKG%" "%OUT_DIR%" %*
  12. if errorlevel 1 (
  13. echo POJO generation failed.
  14. exit /b 1
  15. )
  16. echo POJO generation completed.
  17. endlocal
  18. if "%nopause%" == "true" (goto :eof)
  19. pause