Remove any automatically unpacked native library. This will fail on windows, which disallows removal of any file that is still in use, so an alternative is required in that case. Mark the file that could not be deleted, and attempt to delete any temporaries on next
(File lib)
| 363 | (e.g. Memory) which may still need use of the library before shutdown. |
| 364 | */ |
| 365 | static boolean deleteLibrary(File lib) { |
| 366 | if (lib.delete()) { |
| 367 | return true; |
| 368 | } |
| 369 | |
| 370 | // Couldn't delete it, mark for later deletion |
| 371 | markTemporaryFile(lib); |
| 372 | |
| 373 | return false; |
| 374 | } |
| 375 | |
| 376 | private Native() { } |
| 377 |
no test coverage detected