visit
Saves an OutputArtifact to a file with text content.
Return
the file itself
Exports a FileReferenceOutputArtifact to the output location. If the source is a directory, it is copied recursively.
Resolution order for disk-backed sources:
If FileReferenceOutputArtifact.symlink is set and the platform supports symbolic links, a link is created instead of copying.
Otherwise, if FileReferenceOutputArtifact.useChecksumInvalidation is enabled, a sibling
.checksumfile is maintained next to the output; the copy is skipped when the source's checksum matches the stored value. This avoids redundant I/O for large assets (fonts, third-party libraries) that rarely change between builds.Otherwise, the source is copied unconditionally.
A virtual (non-disk-backed) source is materialized by reading it through its file system, without symlinking or checksum invalidation.
Return
the copied file or directory
Saves an OutputResourceGroup to a directory which contains its nested files.
Return
the directory file itself