Skip to content

Commit

Permalink
fix windows ni build
Browse files Browse the repository at this point in the history
  • Loading branch information
ianopolous committed Mar 26, 2024
1 parent 50d77e6 commit 97f2ebb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions native-build/BuildNativeImage.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ public static void main(String[] a) throws Exception {
String extraDirs = OS.equals("darwin") ? "/Contents/Home" : "";

String ext = OS.equals("windows") ? ".exe" : "";
Optional<Path> nativeImage = Files.walk(Paths.get(""), 5)
.filter(p -> p.getFileName().startsWith("native-image") && p.toFile().isFile())
Optional<Path> nativeImage = Files.walk(Paths.get("."), 5)
.filter(p -> p.getFileName().toString().contains("native-image") && !p.toFile().isDirectory())
.findFirst();
if (nativeImage.isEmpty())
throw new IllegalStateException("Couldn't find native image executable");
Expand Down

0 comments on commit 97f2ebb

Please sign in to comment.