Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ object WorkspaceExecutionPlanner {
val globs = workspaceConfig.flows ?: listOf("*")

val matchers = globs.flatMap { glob ->
directories.map { it.fileSystem.getPathMatcher("glob:${it.pathString}/$glob") }
directories.map { it.fileSystem.getPathMatcher(escapeSlashesForWindows("glob:${it.pathString}${it.fileSystem.separator}$glob")) }
}

val unsortedFlowFiles = flowFiles + flowFilesInDirs.filter { path ->
Expand Down Expand Up @@ -176,6 +176,10 @@ object WorkspaceExecutionPlanner {
return file.fileName.toString().substringBeforeLast(".")
}

private fun escapeSlashesForWindows(pathString: String): String {
return pathString.replace("\\","\\\\")
}

data class FlowSequence(
val flows: List<Path>,
val continueOnFailure: Boolean? = true,
Expand Down