06-25-2011, 12:12 AM
inspire, лови батник
PHP код:
<?php
@echo off
title Aionj Hungary 2.1 BuildAll console
CLS
set pomxmlLSPath=..\LoginServer
set pomxmlGSPath=..\GameServer
set pomxmlCMPath=..\Commons
set pomxmlCSPath=..\ChatServer
set pomxmlDPPath=..\DataPack
set pomxmlPSPath=..\PacketSamurai
:MENU
ECHO.
ECHO.
ECHO.
ECHO ''~``
ECHO ( o o )
ECHO ------------------------.oooO--(_)--Oooo.------------------------
ECHO . 1 - Build All server .
ECHO . 2 - Build Commons Libraries .
ECHO . 3 - Build GameServer server .
ECHO . 4 - Build LoginServer server .
ECHO . 5 - Build ChatServer server .
ECHO . 6 - Build DataPack .
ECHO . 7 - Build Packet Samurai .
ECHO . .
ECHO . 0 - Quit .
ECHO . .oooO .
ECHO . ( ) Oooo. .
ECHO ---------------------------\ (----( )--------------------------
ECHO \_) ) /
ECHO (_/
ECHO.
ECHO.
SET /P Ares=Type 1, 2 ,3, 4, 5, 6, 7 or 0 to QUIT, then press ENTER:
IF %Ares%==1 GOTO FULL
IF %Ares%==2 GOTO Commons
IF %Ares%==3 GOTO GameServer
IF %Ares%==4 GOTO LoginServer
IF %Ares%==5 GOTO ChatServer
IF %Ares%==6 GOTO DataPack
IF %Ares%==6 GOTO PacketSamurai
IF %Ares%==0 GOTO QUIT
GOTO MENU
:FULL
echo Clean Process [DataPack\GameServer\LoginServer\ChatServer]:
echo
echo Moving to folder (%pomxmlDPPath%)
cd %pomxmlDPPath%
call mvn clean
echo Moving to folder (%pomxmlGSPath%)
cd %pomxmlGSPath%
call mvn clean
echo Moving to folder (%pomxmlLSPath%)
cd %pomxmlLSPath%
call mvn clean
echo Moving to folder (%pomxmlCSPath%)
cd %pomxmlCSPath%
call mvn clean
echo
echo Compile Process [Commons\GameServer\DataPack\LoginServer\ChatServer]:
echo
echo Moving to folder (%pomxmlCMPath%)
cd %pomxmlCMPath%
call mvn install
echo Moving to folder (%pomxmlGSPath%)
cd %pomxmlGSPath%
call mvn install
echo
echo Build Process [DataPack\GameServer\LoginServer\ChatServer]:
echo
echo Moving to folder (%pomxmlDPPath%)
cd %pomxmlDPPath%
call mvn assembly:assembly
echo Moving to folder (%pomxmlGSPath%)
cd %pomxmlGSPath%
call mvn assembly:assembly
echo Moving to folder (%pomxmlLSPath%)
cd %pomxmlLSPath%
call mvn assembly:assembly
echo Moving to folder (%pomxmlCSPath%)
cd %pomxmlCSPath%
call mvn assembly:assembly
GOTO QUIT
:Commons
echo Moving to folder (%pomxmlCMPath%)
cd %pomxmlCMPath%
call mvn install
GOTO QUIT
:GameServer
echo Moving to folder (%pomxmlGSPath%)
cd %pomxmlGSPath%
call mvn clean
echo Moving to folder (%pomxmlCMPath%)
cd %pomxmlCMPath%
call mvn install
echo Moving to folder (%pomxmlGSPath%)
cd %pomxmlGSPath%
call mvn install
call mvn assembly:assembly
GOTO QUIT
:LoginServer
echo Moving to folder (%pomxmlGSPath%)
cd %pomxmlLSPath%
call mvn clean
echo Moving to folder (%pomxmlCMPath%)
cd %pomxmlCMPath%
call mvn install
echo Moving to folder (%pomxmlLSPath%)
cd %pomxmlLSPath%
call mvn assembly:assembly
GOTO QUIT
:ChatServer
echo Moving to folder (%pomxmlCSPath%)
cd %pomxmlCSPath%
call mvn clean
echo Moving to folder (%pomxmlCMPath%)
cd %pomxmlCMPath%
call mvn install
echo Moving to folder (%pomxmlCSPath%)
cd %pomxmlCSPath%
call mvn assembly:assembly
GOTO QUIT
:DataPack
echo Moving to folder (%pomxmlDPPath%)
cd %pomxmlDPPath%
call mvn clean
echo Moving to folder (%pomxmlDPPath%)
cd %pomxmlDPPath%
call mvn assembly:assembly
GOTO QUIT
:PacketSamurai
echo Moving to folder (%pomxmlPSPath%)
cd %pomxmlPSPath%
call ant init dist
GOTO QUIT
:QUIT
exit