Hello
Is there a way to get an exit code from java ?
I am using WH in a batch script (java -jar webharvest_all_2.jar config=) and I would like to check if everything worked fine with the variable %ERRORLEVEL% but I never get anything, it would be something like :
setlocal ENABLEEXTENSIONS java -jar webharvest_all_2.jar config="list.xml" loglevel=error set exitcode = %ERRORLEVEL% echo Exitcode: %exitcode%
Thank's
java returns an exit code but is only accessible immediatly with the syntax:
IF ERRORLEVEL 1 GOTO...
Log in to post a comment.
Hello
Is there a way to get an exit code from java ?
I am using WH in a batch script (java -jar webharvest_all_2.jar config=)
and I would like to check if everything worked fine with the variable
%ERRORLEVEL% but I never get anything, it would be something like :
Thank's
java returns an exit code but is only accessible immediatly with the syntax: