api / org.gradle.api.tasks / Sync / preserve

preserve

@Incubating open fun preserve(action: Action<in PatternFilterable>): Sync

Configures the filter that defines which files to preserve in the destination directory.

Parameters

action - Action for configuring the preserve filter

Return
this

See Also
#getDestinationDir()