Skip to content

Commit bcbbbdc

Browse files
authored
Merge pull request #9549 from dquintela/fix_flyway_native_image_from_windows
Fix flyway resource inclusion in native image when build is triggered…
2 parents 88868f4 + 2c99a30 commit bcbbbdc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

extensions/flyway/deployment/src/main/java/io/quarkus/flyway/FlywayProcessor.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import static io.quarkus.deployment.annotations.ExecutionTime.STATIC_INIT;
44

5+
import java.io.File;
56
import java.io.IOException;
67
import java.net.URI;
78
import java.net.URISyntaxException;
@@ -197,6 +198,7 @@ private Set<String> getApplicationMigrationsFromPath(final String location, fina
197198
try (final Stream<Path> pathStream = Files.walk(Paths.get(path.toURI()))) {
198199
return pathStream.filter(Files::isRegularFile)
199200
.map(it -> Paths.get(location, it.getFileName().toString()).toString())
201+
.map(it -> it.replace(File.separatorChar, '/'))
200202
.peek(it -> LOGGER.debug("Discovered: " + it))
201203
.collect(Collectors.toSet());
202204
}

0 commit comments

Comments
 (0)