FileReferenceOutputArtifact

constructor(name: String, file: FsEntry, useChecksumInvalidation: Boolean = false, symlink: Boolean = false)

Parameters

name

the output file name (with extension, since the original file name is used as-is)

file

the source entry (file or directory) to export

useChecksumInvalidation

whether to also create a checksum file for this artifact, used for incremental builds to determine whether the artifact has changed since the last build and should be recreated. Only applies to disk-backed entries

symlink

whether to create a symbolic link to the source file instead of copying it. Takes precedence over useChecksumInvalidation. Only applies to disk-backed entries