Skip to content

Commit 2882f26

Browse files
ScheererJmichele-mancioppi
authored andcommitted
Cleanup the heap dump add-on files as well.
1 parent f86e004 commit 2882f26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cf_cli_java_plugin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ func (c *JavaPlugin) execute(commandExecutor cmd.CommandExecutor, uuidGenerator
206206
// OpenJDK
207207
remoteCommandTokens = append(remoteCommandTokens, "rm -f "+heapdumpFileName)
208208
// SAP JVM
209-
remoteCommandTokens = append(remoteCommandTokens, "if [ -n \"${HEAP_DUMP_NAME}\" ]; then rm -f ${HEAP_DUMP_NAME}; fi")
209+
remoteCommandTokens = append(remoteCommandTokens, "if [ -n \"${HEAP_DUMP_NAME}\" ]; then rm -f ${HEAP_DUMP_NAME} ${HEAP_DUMP_NAME%.*}.addons; fi")
210210
}
211211
case threadDumpCommand:
212212
// OpenJDK

0 commit comments

Comments
 (0)