@echo OFF
SETLOCAL

set NAME="HelloWorld - face/java"

echo "==== Calling check_osplhome===="
call %FUNCTIONS% :check_osplhome

echo "====Calling stopOSPL ===="
call %FUNCTIONS% :stopOSPL

echo "====Calling startOSPL ===="
call %FUNCTIONS% :startOSPL

echo "=== Launching java HelloWorld "
start CMD /C RUNSUB.bat

%SLEEP5% >NUL

java -jar pub/face_HelloWorld_pub.jar > pubResult.txt
set PUB_RESULT=%errorlevel%
set /p SUB_RESULT=<subReturn.txt

%SLEEP5% >NUL

call %FUNCTIONS% :checkResultZero >> run.log

call %FUNCTIONS% :stopOSPL
