ARTEMIS-4057 Fix backup last OOME heap dump on Windows

This commit is contained in:
Domenico Francesco Bruscino 2022-10-18 08:49:31 +02:00
parent a6e69aaccf
commit 8583288603
1 changed files with 2 additions and 2 deletions

View File

@ -48,9 +48,9 @@ rem "Load Profile Config"
set ARTEMIS_INSTANCE_ETC="${artemis.instance.etc}" set ARTEMIS_INSTANCE_ETC="${artemis.instance.etc}"
call %ARTEMIS_INSTANCE_ETC%\artemis.profile.cmd %* call %ARTEMIS_INSTANCE_ETC%\artemis.profile.cmd %*
if not exist "%ARTEMIS_OOME_DUMP%" goto NO_ARTEMIS_OOME_DUMP if not exist %ARTEMIS_OOME_DUMP% goto NO_ARTEMIS_OOME_DUMP
rem "Backup the last OOME heap dump" rem "Backup the last OOME heap dump"
move /Y "%ARTEMIS_OOME_DUMP%" "%ARTEMIS_OOME_DUMP%.bkp" move /Y %ARTEMIS_OOME_DUMP% %ARTEMIS_OOME_DUMP%.bkp
:NO_ARTEMIS_OOME_DUMP :NO_ARTEMIS_OOME_DUMP