Skip to content

Commit

Permalink
Normalize migration paths in Flyway extension
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet committed Sep 1, 2020
1 parent 534dec6 commit b7f099f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ private Set<String> getApplicationMigrationsFromPath(final String location, fina

try (final Stream<Path> pathStream = Files.walk(rootPath)) {
return pathStream.filter(Files::isRegularFile)
.map(it -> Paths.get(location, rootPath.relativize(it).toString()).toString())
.map(it -> Paths.get(location, rootPath.relativize(it).toString()).normalize().toString())
// we don't want windows paths here since the paths are going to be used as classpath paths anyway
.map(it -> it.replace('\\', '/'))
.peek(it -> LOGGER.debugf("Discovered path: %s", it))
Expand Down

0 comments on commit b7f099f

Please sign in to comment.