Skip to content

Conversation

@jorgee
Copy link
Contributor

@jorgee jorgee commented Dec 19, 2025

Extends #6675 to support also Iterable, Bag and Map standard types

Signed-off-by: jorgee <jorge.ejarque@seqera.io>
Signed-off-by: jorgee <jorge.ejarque@seqera.io>
@jorgee jorgee requested a review from bentsherman December 19, 2025 10:49
Signed-off-by: jorgee <jorge.ejarque@seqera.io>
}

if( Collection.class.isAssignableFrom(decl.type) ) {
if( Collection.class.isAssignableFrom(decl.type) || decl.type == Iterable.class || decl.type == Map.class) {
Copy link
Contributor Author

@jorgee jorgee Dec 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I used decl.type == Iterable.class instead of Iterable.class.isAssignableFrom(decl.type), because Path implements Iterable<Path>, therefore inputs declared as Path were fulfilling this condition

jorgee and others added 2 commits December 19, 2025 12:19
Signed-off-by: jorgee <jorge.ejarque@seqera.io>
Signed-off-by: Ben Sherman <bentshermann@gmail.com>
@bentsherman bentsherman merged commit 5bfe3a6 into collection-param-from-file Dec 19, 2025
3 checks passed
@bentsherman bentsherman deleted the all-param-from-file branch December 19, 2025 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants