Hudson automatically compiles, starts, and stops Java's jar through Ant

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.