UniquePath transform

This topic tells you about the Application Accelerator UniquePath transform in Tanzu Application Platform (commonly known as TAP).

You can use the UniquePath transform to ensure there are no path conflicts between files transformed. You can often use this at the tail of a Chain.

Syntax reference

type: UniquePath
strategy: <conflict resolution>
condition: <SpEL expression>

Examples

The following example concatenates the file that was originally named DEPLOYMENT.md to the file README.md:

chain:
  - merge:
      - include: ['README.md']
      - include: ['DEPLOYMENT.md']
        chain:
          - type: RewritePath
            rewriteTo: "'README.md'"
  - type: UniquePath
    strategy: Append

See also

  • UniquePath uses a Conflict Resolution strategy to decide what to do when several input files use the same path.
  • Combo implicitly embeds a UniquePath after the Merge defined by its merge property.
check-circle-line exclamation-circle-line close-line
Scroll to top icon