Exclude retains files based on their path, letting everything in except those files whose path matches at least one of the configured patterns.

The contents of files, or any of their other characteristics are unaffected.

Exclude is a basic building block seldom used as is, which only makes sense if composed inside a Chain or a Merge. As such, it is often more convenient to leverage the shorthand notation offered by Combo.

Syntax Reference

type: Exclude
patterns: [<ant pattern>]
condition: <SpEL expression>

Examples

type: Chain
transformations:
  - type: Exclude
    patterns: ["**/secret/**"]
  - type: # At this point, no file matching **/secret/** is affected

See Also

check-circle-line exclamation-circle-line close-line
Scroll to top icon