Perform cleanup of automatically unpacked native shared library.
(File file)
| 1373 | /** Perform cleanup of automatically unpacked native shared library. |
| 1374 | */ |
| 1375 | static void markTemporaryFile(File file) { |
| 1376 | // If we can't force an unload/delete, flag the file for later |
| 1377 | // deletion |
| 1378 | try { |
| 1379 | File marker = new File(file.getParentFile(), file.getName() + ".x"); |
| 1380 | marker.createNewFile(); |
| 1381 | } |
| 1382 | catch(IOException e) { e.printStackTrace(); } |
| 1383 | } |
| 1384 | |
| 1385 | /** Obtain a directory suitable for writing JNA-specific temporary files. |
| 1386 | Override with <code>jna.tmpdir</code> |