Skip to content

Commit

Permalink
fix(native-image): make sure the parent directory exists before expor…
Browse files Browse the repository at this point in the history
…ting the sqlitejdbc library
  • Loading branch information
kkriske committed Aug 8, 2023
1 parent 14e5eb8 commit 544ebae
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ private void handleLibraryResources() {
// the user is responsible to make sure the created native-image can actually find it.
Path targetPath = Paths.get(exportLocation, libraryName);
try (InputStream in = SQLiteJDBCLoader.class.getResourceAsStream(libraryResource)) {
Files.createDirectories(targetPath.getParent());
Files.copy(in, targetPath, StandardCopyOption.REPLACE_EXISTING);
} catch (IOException e) {
throw new SqliteJdbcFeatureException(e);
Expand Down

0 comments on commit 544ebae

Please sign in to comment.