fix: filter project dir on windows (#214)

This commit is contained in:
MiniDigger | Martin 2023-10-05 19:20:14 +02:00 committed by GitHub
parent 4803719449
commit 586f6a7d49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,7 +87,7 @@ abstract class FilterProjectDir : BaseTask() {
private fun collectFiles(dir: Path): Set<String> {
return Files.walk(dir).use { stream ->
stream.filter { it.isRegularFile() }
.map { it.relativeTo(dir).toString() }
.map { it.relativeTo(dir).invariantSeparatorsPathString }
.collect(Collectors.toUnmodifiableSet())
}
}