123456789101112131415161718192021222324 |
- @echo off
- setlocal
- REM Source JSON and XLS directories
- set SRC_JSON=D:\project\FishConfig\GameConfig\json
- set SRC_XLS=D:\project\FishConfig\GameConfig
- REM Target Java package (align with target path)
- set PKG=vip.metadev.module.business.pojo
- REM Output Java source root (module-business project)
- set OUT_DIR=D:\project\game-framework\game-module-business\src\main\java
- REM Run generator (forward optional table names)
- node "%~dp0gen_pojo_from_xls_json.js" "%SRC_JSON%" "%SRC_XLS%" "%PKG%" "%OUT_DIR%" %*
- if errorlevel 1 (
- echo POJO generation failed.
- exit /b 1
- )
- echo POJO generation completed.
- endlocal
- if "%nopause%" == "true" (goto :eof)
- pause
|