510ad7b9c7
This commit enables CLI commands to be closeable and installs a runtime shutdown hook to ensure that if the JVM shuts down (as opposed to aborting) the close method is called. It is not enough to wrap uses of commands in main methods in try-with-resources blocks as these will not run if, say, the virtual machine is terminated in response to SIGINT, or system shutdown event. Relates #22126 |
||
---|---|---|
.. | ||
src/test | ||
build.gradle |