首页 > 编程语言 > 详细

hudson通过ant自动编译、启动、停止java的jar

时间:2018-01-13 12:23:07      阅读:211      评论:0      收藏:0      [点我收藏+]

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%"‘) do (
taskkill /pid %%m
)
set port=7008
for /f "tokens=1-5" %%i in (‘netstat -ano^|findstr ":%port%"‘) do (
taskkill /pid %%m
)
set port=7009
for /f "tokens=1-5" %%i in (‘netstat -ano^|findstr ":%port%"‘) do (
taskkill /pid %%m
)

hudson通过ant自动编译、启动、停止java的jar

原文:https://www.cnblogs.com/xingchong/p/8278696.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!