Home > docs > processes v2 > Resources
Concord loads the root concord.yml
first and subsequently looks for the
resource paths under the resources
section.
If not specified, Concord uses the default resources
value:
resources:
concord:
- "glob:concord/{**/,}{*.,}concord.yml"
Thus, by default Concord looks for:
concord.yml
or .concord.yml
file;${workDir}/concord/concord.yml
;.concord.yml
extension in the ${workDir}/concord
directory.Each element of the resources.concord
list must be a valid path pattern.
In addition to glob
, Concord supports regex
patterns:
resources:
concord:
- "regex:extraFiles/.*\\.my\\.yml"
With the example above Concord loads all files in the extraFiles
directory
with the .my.yml
extension. Note that in this case Concord won’t look in
the subdirectories.
Multiple pattens can be specified:
resources:
concord:
- "glob:myConcordFlows/*.concord.yml"
- "regex:extra/[a-z]\\.concord.yml"
See the FileSystem#getPathMatcher
documentation for more details on the glob
and regex
syntax.