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
  • Loading branch information
kkriske authored Aug 9, 2023
1 parent 14e5eb8 commit bfa7510
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 bfa7510

Please sign in to comment.