@echo off rem GFCPP must be set rem GEMFIRE must be set rem OPENSSL must be set for Security example if not "%GFCPP%"=="" goto checkGEMFIRE echo GFCPP is not set. goto finished :checkGEMFIRE if not "%GEMFIRE%"=="" goto checkOPENSSL echo GEMFIRE is not set. goto finished :checkOPENSSL if not "%OPENSSL%"=="" goto startexamples echo OPENSSL is not set. echo If OpenSSL libraries are not found in PATH then Security example will fail. :startexamples set LANG=C# set LANGDIR=csharp if not exist %LANGDIR%\%1.exe goto presentmenu set exname=%1 :runexample if not exist %LANGDIR%\%exname%.exe goto presentmenu echo. echo Running GemFire %LANG% QuickStart example %exname% ... set CLASSPATH=%CLASSPATH%;../lib/javaobject.jar;%GEMFIRE%\lib\gfSecurityImpl.jar set PATH=%GEMFIRE%\bin;%PATH%;%GEMFIRE%\bin;%GFCPP%\bin;%OPENSSL%\bin;..\bin; if not exist gfecs mkdir gfecs if '%exname%' neq 'HACache' goto skiphadir if not exist gfecs2 mkdir gfecs2 :skiphadir if '%exname%' equ 'Security' goto startserverforsecurity call cacheserver start cache-xml-file=../XMLs/server%exname%.xml mcast-port=35673 -dir=gfecs if '%exname%' neq 'HACache' goto skiphastart call cacheserver start cache-xml-file=../XMLs/server%exname%2.xml mcast-port=35673 -dir=gfecs2 if '%exname%' neq 'Security' goto :skipsecuritystart :startserverforsecurity call cacheserver start cache-xml-file=../XMLs/server%exname%.xml mcast-port=35673 -dir=gfecs security-client-authenticator=templates.security.PKCSAuthenticator.create security-publickey-filepath=../keystore/publickeyfile security-publickey-pass=gemfire security-authz-xml-uri=../XMLs/authz-pkcs.xml security-client-accessor=templates.security.XmlAuthorization.create :skiphastart :skipsecuritystart call %LANGDIR%\%exname%.exe call cacheserver stop -dir=gfecs if '%exname%' neq 'HACache' goto skiphastop call cacheserver stop -dir=gfecs2 :skiphastop if '%exname%' equ 'invalidoption' goto invalidoption rem echo Please review the example's log output above then rem pause goto closeup :presentmenu echo. echo Please select a GemFire %LANG% QuickStart example to run. echo. echo 1. BasicOperations echo 2. DataExpiration echo 3. LoaderListenerWriter echo 4. RegisterInterest echo 5. RemoteQuery echo 6. HA Cache echo 7. Exceptions echo 8. DurableClient echo 9. Security echo 10.PutAllGetAllOperations echo 11. Quit echo. :getoption rem choice /c:123 /n set /p option=Enter option: set exname=invalidoption if '%option%' equ '1' set exname=BasicOperations if '%option%' equ '2' set exname=DataExpiration if '%option%' equ '3' set exname=LoaderListenerWriter if '%option%' equ '4' set exname=RegisterInterest if '%option%' equ '5' set exname=RemoteQuery if '%option%' equ '6' set exname=HACache if '%option%' equ '7' set exname=Exceptions if '%option%' equ '8' set exname=DurableClient if '%option%' equ '9' set exname=Security if '%option%' equ '10' set exname=PutAllGetAllOperations if '%option%' equ '11' goto finished if '%exname%' equ 'invalidoption' goto invalidoption goto runexample :invalidoption echo Invalid option. goto getoption :closeup echo Finished example %exname%. :finished