File tree Expand file tree Collapse file tree
maestro-orchestra/src/main/java/maestro/orchestra/workspace Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ object WorkspaceExecutionPlanner {
6363 val globs = workspaceConfig.flows ? : listOf (" *" )
6464
6565 val matchers = globs.flatMap { glob ->
66- directories.map { it.fileSystem.getPathMatcher(" glob:${it.pathString} / $ glob" ) }
66+ directories.map { it.fileSystem.getPathMatcher(escapeSlashesForWindows( " glob:${it.pathString}${it.fileSystem.separator}$ glob " ) ) }
6767 }
6868
6969 val unsortedFlowFiles = flowFiles + flowFilesInDirs.filter { path ->
@@ -175,6 +175,10 @@ object WorkspaceExecutionPlanner {
175175 return file.fileName.toString().substringBeforeLast(" ." )
176176 }
177177
178+ private fun escapeSlashesForWindows (pathString : String ): String {
179+ return pathString.replace(" \\ " ," \\\\ " )
180+ }
181+
178182 data class FlowSequence (
179183 val flows : List <Path >,
180184 val continueOnFailure : Boolean? = true ,
You can’t perform that action at this time.
0 commit comments