visit

open override fun visit(artifact: TextOutputArtifact): <Error class: unknown class>

Saves an OutputArtifact to a file with text content.

Return

the file itself


open override fun visit(artifact: BinaryOutputArtifact): <Error class: unknown class>


open override fun visit(artifact: FileReferenceOutputArtifact): <Error class: unknown class>

Copies a FileReferenceOutputArtifact to the output location. If the source is a directory, it is copied recursively.

When FileReferenceOutputArtifact.useChecksumInvalidation is enabled, a sibling .checksum file is maintained next to the output. If the checksum of the source matches the stored value, the copy is skipped entirely. This avoids redundant I/O for large assets (fonts, third-party libraries) that rarely change between builds.

Return

the copied file or directory


open override fun visit(group: OutputResourceGroup): File

Saves an OutputResourceGroup to a directory which contains its nested files.

Return

the directory file itself