Set Ant_path=e:\soft\apache_ant\bin
E:
CD E:\data\codex\server\trunk\server
SVN up
@echo.
@echo.
@echo "====================================================> Build Codex-core.jar <========================= ==========================="
CD Codex-core
%ant_path%\ant rebuild
@echo.
@echo.
@echo.
@echo.
@echo "====================================================> Build Codex-db.jar <=========================== =========================="
Set Ant_path=e:\soft\apache_ant\bin
E:
CD E:\data\codex\server\trunk\server
CD codex-db
%ant_path%\ant rebuild
@echo.
@echo.
@echo.
@echo.
@echo "====================================================> Build Codex-battle.jar <======================= ============================="
Set Ant_path=e:\soft\apache_ant\bin
E:
CD E:\data\codex\server\trunk\server
CD Codex-battle
%ant_path%\ant rebuild
@echo.
@echo.
@echo.
@echo.
@echo "====================================================> Build Codex-game.jar <========================= ============================"
Set Ant_path=e:\soft\apache_ant\bin
E:
CD E:\data\codex\server\trunk\server
CD Codex-game
%ant_path%\ant rebuild
@echo.
@echo.
@echo.
@echo.
@echo "====================================================> Run Codex-game.jar <=========================== =========================="
E:
CD E:\data\codex\server\trunk\server
CD Codex-game\deploy
Start java-xbootclasspath/a:.. /deploy-dfile.encoding=utf-8-jar Codex-game.jar
@echo.
@echo.
@echo.
@echo.
@echo "====================================================> Stop Codex-game.jar <========================== ==========================="
E:
CD E:\data\codex\server\trunk\server
Set port=7007
for/f "Tokens=1-5"%%i in (' Netstat-ano^|findstr ":%port%" ') does (
Taskkill/pid%%m
)
Set port=7008
for/f "Tokens=1-5"%%i in (' Netstat-ano^|findstr ":%port%" ') does (
Taskkill/pid%%m
)
Set port=7009
for/f "Tokens=1-5"%%i in (' Netstat-ano^|findstr ":%port%" ') does (
Taskkill/pid%%m
)
Hudson automatically compiles, starts, and stops Java's jar through Ant