I'm trying to do bundle up some files, if they exist. So I create a
path with include="**/CDM/*.sql" and iterate with foreach on
This works fine if there is at least one file matching that pattern.
But if there is no such file I get:
You must have a list or path to iterate through
and the build fails.
This behavior seems non-intuitive. It seems to me like foreach
should just do nothing if there is nothing in its list or path. It
should just be an empty iterator.
Log in to post a comment.