0
귀 배포를 websphere로 자동화하고 app에 변수를 작성하는 스크립트를 작성하고 있습니다.Websphere bat 파일에서 배치 파일을 종료합니다.
내 문제는 manageprofiles 명 및 startserver는 박쥐 파일을 여러 번
다음를 내 배치를 종료하고 내가 그것을 호출해야 다음 단계로 이동하는 것이 내 스크립트
FOR /F "tokens=*" %%i in ('type params.properties') do SET %%i
REM SET PATH=%PATH%;%AppServerPath%\bin
REM CALL setupCmdLine.bat -create -profileName %profile% -profilePath "%AppServerPath%\profiles\%profile%" -templatePath "%AppServerPath%\profileTemplates\default"
"%AppServerPath%\bin\manageprofiles" -listProfiles | findstr -i %profile% > nul:
if %ERRORLEVEL%==1 (
ECHO Creating profile %profile% on %AppServerPath%\profiles\%profile%
"%AppServerPath%\bin\manageprofiles" -create -profileName %profile% -profilePath "%AppServerPath%\profiles\%profile%" -templatePath "%AppServerPath%\profileTemplates\default"
)
ECHO Getting profile path
FOR /F "delims=" %%a IN ('manageprofiles -getPath -profileName %profile%') DO @SET PROFILEPATH=%%a
REM SET PATH=%OLD_PATH%;%PROFILEPATH%\bin
FOR /F "tokens=7 delims= " %%H IN ('serverStatus server1 ^| findstr "Application Server"') DO (
IF /I "%%H" NEQ "STARTED" (
v ECHO Starting server1
startServer server1
)
)
"%PROFILEPATH%\bin\wsadmin" -lang jython -f EEDeployer.jy "%PROFILEPATH%"
어떤 아이디어 나 대안이다 프로필을 확인하고 존재하지 않는 경우 프로필을 작성한 다음 server1을 시작하십시오.
가끔은 가장 눈에 잘 띄지 않습니다. (벽돌 벽에 머리를 두드리는 소리) – rojanu