You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// type file parameter can contain a multiple files pattern separating them with a special character
1538
-
final filePatterns = param.getFilePatterns(task.context, task.workDir)
1539
-
final opts = [
1540
-
followLinks: param.followLinks,
1541
-
glob: param.glob,
1542
-
hidden: param.hidden,
1543
-
includeInputs: param.includeInputs,
1544
-
maxDepth: param.maxDepth,
1545
-
optional: param.optional || param.arity?.min ==0,
1546
-
type: param.type,
1547
-
]
1548
-
final allFiles = collectOutFiles0(task, filePatterns, opts)
1549
-
1550
-
if( !param.isValidArity(allFiles.size()) )
1551
-
thrownewIllegalArityException("Incorrect number of output files for process `${safeTaskName(task)}` -- expected ${param.arity}, found ${allFiles.size()}")
'file.txt' | [Path.of('/work/file.txt')] | false | '2' | IllegalArityException | "Incorrect number of output files for process `foo` -- expected 2, found 1"
619
-
'*' | [Path.of('/work/file.txt')] | false | '2' | IllegalArityException | "Incorrect number of output files for process `foo` -- expected 2, found 1"
620
-
'*' | [Path.of('/work/file.txt')] | false | '2..*' | IllegalArityException | "Incorrect number of output files for process `foo` -- expected 2..*, found 1"
621
-
'*' | [] | true | '1..*' | IllegalArityException | "Incorrect number of output files for process `foo` -- expected 1..*, found 0"
0 commit comments