标签:
windows7的机器上重启服务需要关闭UAC
::编译部署项目 echo off echo 1. GatewayAdaptor echo 2. LogicService echo 3. MessagePushAdapter echo 4. PhoneAdaptor echo 5. StatusService set /p key= set projectName=projectName set deployName=deployName if %key% == 1 set projectName=GatewayAdaptor if %key% == 1 set deployName=GatewayAdaptor if %key% == 2 set projectName=LogicService if %key% == 2 set deployName=LogicService if %key% == 3 set projectName=MessagePushAdapter if %key% == 3 set deployName=MessagePushAdaptor if %key% == 4 set projectName=PhoneAdaptor if %key% == 4 set deployName=SmartPhoneAdaptor if %key% == 5 set projectName=StatusService if %key% == 5 set deployName=DeviceStatusRegister if %projectName% == projectName exit echo on set projectDir=D:\SourceCode\Platform\trunk\%projectName% set targetDir=%projectDir%\target set deployDir=D:\Tomcat\%deployName%\webapps sc stop %deployName% cd /d %projectDir% svn update cmd /c grails clean-all cmd /c grails dev war %deployDir%\%projectName%.war :: restart service sc start %deployName% cd D:\SourceCode pause
标签:
原文地址:http://www.cnblogs.com/code-style/p/4575336.html