Glassfish 自动部署

阅读更多

 

@echo on 

 

:: enviormnet setting

 

SET CURRENTPATH=D:\work\autobuild\glassfish

SET JREPORTSOURCEHOMEPATH=

SET JREPORTSOURCENAME=

SET REMOTESOURCENAME=

SET MONITORSOUCENAME=

SET GLASSFISHHOME=C:\glassfish3\bin

SET GLASSFISHBINHOME=C:\glassfish3\glassfish\lib

SET GLASSFISHAPPLICATIONHOME=C:\glassfish3\glassfish\domains\domain1\applications

SET REPORTHOME=E:\cheping\jreporthome

 

 

::Deploy the source of jinfonet source

 

cd /D %GLASSFISHHOME%

:: unDeploy and delete the reporthome

call %GLASSFISHHOME%\asadmin undeploy jreport

wmic process where name="java.exe" call terminate

rd /S /Q %REPORTHOME%

rd /S /Q %GLASSFISHAPPLICATIONHOME%

:: start server

call asadmin.bat start-domain domain1

 

call %GLASSFISHHOME%\asadmin deploy %JREPORTSOURCEHOMEPATH%\%JREPORTSOURCENAME%

 

cd /D %CURRENTPATH%

 

 

 

 

你可能感兴趣的:(Glassfish,C,C++,C#)